Επεξεργασία

Κοινή χρήση μέσω


WebPartVerb.Checked Property

Definition

Gets or sets a value indicating that some state associated with a custom verb is currently active or selected.

public:
 virtual property bool Checked { bool get(); void set(bool value); };
[System.Web.UI.Themeable(false)]
public virtual bool Checked { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.Checked : bool with get, set
Public Overridable Property Checked As Boolean

Property Value

true if a state associated with a custom verb is currently active; otherwise, false. The default is false.

Attributes

Remarks

This property is not used with any of the standard verbs provided with the Web Parts control set. When it is used with custom verbs, and the property value is set to true, a selected check box appears next to the verb to indicate the active status of the verb.

The purpose of this property is to give developers a way of indicating that some custom state associated with a verb is currently active. For example, suppose a developer creates a custom verb that enlarges the text size (for accessibility purposes) of the body text on all WebPart controls in a zone. If a user clicks the verb, this property value could be set to true, which would cause a selected check box to appear next to the Increase Text Size verb in the verbs menu, indicating to users that the state associated with the verb (enlarged text) is active.

This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

Applies to