MenuItem Members
.NET Framework 2.0
Represents a menu item displayed in the Menu control. This class cannot be inherited.
The following tables list the members exposed by the MenuItem type.
| Name | Description | |
|---|---|---|
| ChildItems | Gets a MenuItemCollection object that contains the submenu items of the current menu item. |
| DataBound | Gets a value indicating whether the menu item was created through data binding. |
| DataItem | Gets the data item that is bound to the menu item. |
| DataPath | Gets the path to the data that is bound to the menu item. |
| Depth | Gets the level at which a menu item is displayed. |
| 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. |
| ImageUrl | Gets or sets the URL to an image that is displayed next to the text in a menu item. |
| NavigateUrl | Gets or sets the URL to navigate to when the menu item is clicked. |
| Parent | Gets the parent menu item of the current menu item. |
| 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. |
| Selectable | Gets or sets a value that indicates whether the MenuItem object can be selected, or is "clickable." |
| Selected | Gets or sets a value indicating whether the current menu item is selected in a Menu control. |
| SeparatorImageUrl | Gets or sets the URL to an image displayed at the bottom of a menu item to separate it from other menu items. |
| Target | Gets or sets the target window or frame in which to display the Web page content associated with a menu item. |
| Text | Gets or sets the text displayed for the menu item in a Menu control. |
| ToolTip | Gets or sets the ToolTip text for the menu item. |
| 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. |
| ValuePath | Gets the path from the root menu item to the current menu item. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| System.ICloneable.Clone | Creates a copy of the current MenuItem object. |
| 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 MenuItem object to track changes to its view state. |
| System.Web.UI.IStateManager.IsTrackingViewState | Gets a value that indicates whether the MenuItem object is saving changes to its view state. |
Community Additions
ADD
Show: