System.Web.UI.WebControls.MenuItem.Selected Property

Gets or sets a value indicating whether the current menu item is selected in a System.Web.UI.WebControls.Menu control.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItem.Selected property to specify or determine whether the current menu item is selected.

Note:

Although the property can be used to determine whether a menu item is selected, it is more common to use the Menu.SelectedItem property.

Only one menu item can be selected at a time in the System.Web.UI.WebControls.Menu control.

Requirements

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