MenuItem.Enabled Property
Gets or sets whether the menu item is enabled.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Property Enabled As Boolean
Get
Set
'Usage
Dim instance As MenuItem
Dim value As Boolean
value = instance.Enabled
instance.Enabled = value
public bool Enabled { get; set; }
Property Value
Type: System.Boolean
true if the menu item is enabled; otherwise, false. The default is true.