This documentation is archived and is not being maintained.

MenuItem Members

Represents a menu item displayed in the Menu control. This class cannot be inherited.

The MenuItem type exposes the following members.

  NameDescription
Public method MenuItem Overloaded. Initializes a new instance of the MenuItem class.
Top

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property ChildItems Gets a MenuItemCollection object that contains the submenu items of the current menu item.
Public property DataBound Gets a value indicating whether the menu item was created through data binding.
Public property DataItem Gets the data item that is bound to the menu item.
Public property DataPath Gets the path to the data that is bound to the menu item.
Public property Depth Gets the level at which a menu item is displayed.
Public property Enabled Gets or sets a value that indicates whether the MenuItem object is enabled, allowing the item to display a pop-out image and any child menu items.
Public property ImageUrl Gets or sets the URL to an image that is displayed next to the text in a menu item.
Public property NavigateUrl Gets or sets the URL to navigate to when the menu item is clicked.
Public property Parent Gets the parent menu item of the current menu item.
Public property PopOutImageUrl 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.
Public property Selectable Gets or sets a value that indicates whether the MenuItem object can be selected, or is "clickable."
Public property Selected Gets or sets a value indicating whether the current menu item is selected in a Menu control.
Public property SeparatorImageUrl Gets or sets the URL to an image displayed at the bottom of a menu item to separate it from other menu items.
Public property Target Gets or sets the target window or frame in which to display the Web page content associated with a menu item.
Public property Text Gets or sets the text displayed for the menu item in a Menu control.
Public property ToolTip Gets or sets the ToolTip text for the menu item.
Public property Value 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.
Public property ValuePath Gets the path from the root menu item to the current menu item.
Top

  NameDescription
Explicit interface implemetation Private method ICloneable::Clone Creates a copy of the current MenuItem object.
Explicit interface implemetation Private property IStateManager::IsTrackingViewState Infrastructure. Gets a value that indicates whether the MenuItem object is saving changes to its view state.
Explicit interface implemetation Private method IStateManager::LoadViewState Infrastructure. Loads the menu item's previously saved view state.
Explicit interface implemetation Private method IStateManager::SaveViewState Infrastructure. Saves the view-state changes to an Object.
Explicit interface implemetation Private method IStateManager::TrackViewState Infrastructure. Instructs the MenuItem object to track changes to its view state.
Top
Show: