Back to Devexpress

MenuItemCollection Class

aspnet-devexpress-dot-web-d302b00a.md

latest5.4 KB
Original Source

MenuItemCollection Class

Represents a collection that maintains menu items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class MenuItemCollection :
    HierarchicalCollection<MenuItem>
vb
Public Class MenuItemCollection
    Inherits HierarchicalCollection(Of MenuItem)

The following members return MenuItemCollection objects:

Remarks

Menu items are stored within collections which are represented by instances of the MenuItemCollection class. A collection of root items can be accessed via the ASPxMenuBase.Items property of a menu control; a collection of a menu item’s subitems is available through the MenuItem.Items property of the item.

The properties and methods exposed by the MenuItemCollection class can be used to perform common collection operations such as adding new or deleting the existing menu items. Each item of the collection is represented by a MenuItem object. Individual menu items can be accessed using either indexer notation, by their names or display texts using the specific methods of the collection.

Implements

IList

ICollection

IStateManager

DevExpress.Utils.IAssignableCollection

IList<MenuItem>

ICollection<MenuItem>

IEnumerable<MenuItem>

IHierarchicalEnumerable

IEnumerable

Inheritance

Show 25 items

Object StateManagedCollectionBase Collection Collection<MenuItem> HierarchicalCollection<MenuItem> MenuItemCollection GanttToolbarItemCollection

GridToolbarItemCollection

GridViewContextMenuItemCollection

VerticalGridToolbarItemCollection

TreeListToolbarItemCollection

CardViewToolbarItemCollection

GridViewToolbarItemCollection

BootstrapToolbarItemCollection

BootstrapCardViewToolbarMenuItemCollection

BootstrapCardViewToolbarItemCollection

BootstrapMenuItemCollection

BootstrapGridViewToolbarMenuItemCollection

BootstrapToolbarMenuItemCollection

BootstrapGridViewToolbarItemCollection

MVCxCardViewToolbarItemCollection

MVCxGridViewToolbarItemCollection

MVCxVerticalGridToolbarItemCollection

MVCxTreeListToolbarItemCollection

MVCxMenuItemCollection

See Also

MenuItemCollection Members

ASPxMenuBase.Items

MenuItem.Items

Menu

DevExpress.Web Namespace