System.Web.UI.WebControls.WebParts.WebPartVerb.Enabled Property

Gets or sets a value that indicates whether a verb is enabled.

Syntax

[System.ComponentModel.DefaultValue(true)]
[System.ComponentModel.NotifyParentProperty(true)]
public virtual bool Enabled { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to get or set a value indicating whether the verb is enabled. It is useful to be able to enable or disable verbs at given points in the page and control life cycle. For example, if a developer wants to prevent users from being able to close the System.Web.UI.WebControls.WebParts.WebPart controls in a zone for any reason, the developer can set the WebPartVerb.Enabled property value on the WebPartZoneBase.CloseVerb verb to false, and then users will be prevented from closing any controls within that zone. By default, disabled verbs are rendered in verbs menus with a visual cue such as a lighter text color.

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

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0