Represents an individual menu item within menu controls.
public class MenuItem : CollectionItem, IEnumerable, IHierarchyData
Public Class MenuItem Inherits CollectionItem Implements IEnumerable, IHierarchyData
Related API Members
The following members accept/return MenuItem objects:
The MenuItem class implements the functionality of an individual menu item within a control of the ASPxMenu or ASPxPopupMenu type. Instances of the MenuItem class are maintained within the MenuItem.Items of each parent menu item and within a menu control's ASPxMenuBase.Items collection which holds the root menu items. Individual menu items can be accessed and manipulated (added or deleted) by using the means provided by the MenuItemCollection class which is exposed via these Items properties.
Use the properties of the MenuItem class to specify the appearance and behavior of an individual menu item. You can define the MenuItem.Text, MenuItem.Image, MenuItem.ToolTip and MenuItem.Visible properties to specify the item's caption text, image displayed in the item, the tool tip and visibility state. Specify the MenuItem.NavigateUrl and MenuItem.Target properties to set the URL the client web browser navigates to when an end user clicks the item and the window or frame in which to display the content.
Note that the MenuItem class has a client-side equivalent - an object of the ASPxClientMenuItem type.