System.Web.UI.WebControls.MenuItem Members

The members of System.Web.UI.WebControls.MenuItem are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.MenuItem class without menu text or a value.

Initializes a new instance of the System.Web.UI.WebControls.MenuItem class using the specified menu text.

Initializes a new instance of the System.Web.UI.WebControls.MenuItem class using the specified menu text and value.

Initializes a new instance of the System.Web.UI.WebControls.MenuItem class using the specified menu text, value, and URL to an image.

Initializes a new instance of the System.Web.UI.WebControls.MenuItem class using the specified menu text, value, image URL, and navigation URL.

Initializes a new instance of the System.Web.UI.WebControls.MenuItem class using the specified menu text, value, image URL, navigation URL, and target.

Public Properties

[read-only]
ChildItemsMenuItemCollection.

Gets a System.Web.UI.WebControls.MenuItemCollection object that contains the submenu items of the current menu item.

[read-only]
DataBoundbool.

Gets a value indicating whether the menu item was created through data binding.

[read-only]
DataItemobject.

Gets the data item that is bound to the menu item.

[read-only]
DataPathstring.

Gets the path to the data that is bound to the menu item.

[read-only]
Depthint.

Gets the level at which a menu item is displayed.

Enabledbool.

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.

ImageUrlstring.

Gets or sets the URL to an image that is displayed next to the text in a menu item.

NavigateUrlstring.

Gets or sets the URL to navigate to when the menu item is clicked.

[read-only]
ParentMenuItem.

Gets the parent menu item of the current menu item.

PopOutImageUrlstring.

Gets or sets the URL to an image that is displayed in a menu item to indicate that the menu item has a dynamic submenu.

Selectablebool.

Gets or sets a value that indicates whether the System.Web.UI.WebControls.MenuItem object can be selected, or is "clickable."

Selectedbool.

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

SeparatorImageUrlstring.

Gets or sets the URL to an image displayed at the bottom of a menu item to separate it from other menu items.

Targetstring.

Gets or sets the target window or frame in which to display the Web page content associated with a menu item.

Textstring.

Gets or sets the text displayed for the menu item in a System.Web.UI.WebControls.Menu control.

ToolTipstring.

Gets or sets the ToolTip text for the menu item.

Valuestring.

Gets or sets a non-displayed value used to store any additional data about the menu item, such as data used for handling postback events.

[read-only]
ValuePathstring.

Gets the path from the root menu item to the current menu item.

Explicitly Implemented Interface Members

ICloneable.Clone

Creates a copy of the current System.Web.UI.WebControls.MenuItem object.

[read-only]
System.Web.UI.IStateManager.IsTrackingViewStatebool.

Gets a value that indicates whether the System.Web.UI.WebControls.MenuItem object is saving changes to its view state.

System.Web.UI.IStateManager.LoadViewState

Loads the menu item's previously saved view state.

System.Web.UI.IStateManager.SaveViewState

Saves the view-state changes to an object.

System.Web.UI.IStateManager.TrackViewState

Instructs the System.Web.UI.WebControls.MenuItem object to track changes to its view state.