System.Web.UI.WebControls.MenuItem.Enabled Property

Gets or sets a value that indicates whether the System.Web.UI.WebControls.MenuItem object is enabled, allowing the item to display a pop-out image and any child menu items.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

When this property is set to false, the menu item is disabled and no pop-out image indicating child items is displayed. Setting this property to false for a menu item essentially makes the menu item the end of that node, where no further levels are shown off of that node. The default value is true.

If you want the menu item to show any child items, but to not be "clickable" itself, use the MenuItem.Selectable property and set it to false.

Requirements

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