Represents a collection that maintains menu items.
public class MenuItemCollection : HierarchicalCollection<MenuItem>
Public Class MenuItemCollection Inherits HierarchicalCollection(Of MenuItem)
Related API Members
The following members accept/return MenuItemCollection objects:
|Library||Related API Members|
|ASP.NET Controls and MVC Extensions||ASPxMenuBase.Items|
|ASP.NET Bootstrap Controls||BootstrapCardViewToolbarItemBase.Items|
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.