Back to Devexpress

MenuItem Class

aspnet-devexpress-dot-web-2623d669.md

latest8.0 KB
Original Source

MenuItem Class

Represents an individual menu item within menu controls.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class MenuItem :
    CollectionItem,
    IEnumerable,
    IHierarchyData,
    ISupportSvgImageRendering
vb
Public Class MenuItem
    Inherits CollectionItem
    Implements IEnumerable,
               IHierarchyData,
               ISupportSvgImageRendering

The following members return MenuItem objects:

Show 14 links

Remarks

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 tooltip 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.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IEnumerable

IHierarchyData

Inheritance

Show 42 items

Object StateManager CollectionItem MenuItem GanttToolbarItemBase

VerticalGridToolbarItem

GanttCustomToolbarItem

GanttFullScreenToolbarItem

GanttRedoToolbarItem

GanttRemoveTaskToolbarItem

GanttResourceManagerToolbarItem

GanttZoomInToolbarItem

GanttZoomOutToolbarItem

GanttShowDependenciesToolbarItem

GanttShowResourcesToolbarItem

TreeListToolbarItem

GridToolbarItem

CardViewToolbarItem

GanttAddTaskToolbarItem

GanttCollapseAllToolbarItem

GanttDefaultToolbarItem

GanttExpandAllToolbarItem

GanttTaskDetailsToolbarItem

GridViewToolbarItem

GridViewContextMenuItem

MVCxCardViewToolbarItem

MVCxGridViewToolbarItem

MVCxMenuItem

MVCxTreeListToolbarItem

MVCxVerticalGridToolbarItem

BootstrapCardViewToolbarItem

BootstrapCardViewToolbarItemBase

BootstrapCardViewToolbarMenuItem

BootstrapGridViewToolbarItem

BootstrapGridViewToolbarItemBase

BootstrapGridViewToolbarMenuItem

BootstrapMenuItem

BootstrapSchedulerMenuItem

BootstrapToolbarItem

BootstrapToolbarItemBase

BootstrapToolbarMenuItem

GanttUndoToolbarItem

See Also

MenuItem Members

ASPxMenuBase.Items

MenuItem.Items

Menu

DevExpress.Web Namespace