Tab

MenuItem.Items Property

Gets a collection that contains the submenu items of the current menu item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public MenuItemCollection Items { get; }
Public ReadOnly Property Items As MenuItemCollection

Property Value

Type Description
MenuItemCollection

A MenuItemCollection that contains the submenu items of the current menu item.

Available values:

Show 12 items
Name Description
IndexOfText(String)

Searches for an item object specified by the value of its MenuItem.Text property and returns the zero-based index of the first occurrence within the item collection.

IndexOfName(String)

Searches for an item object specified by the value of its MenuItem.Name property and returns the zero-based index of the first occurrence within the item collection.

FindByText(String)

Returns an item object with the specified MenuItem.Text property value.

FindByName(String)

Returns an item object with the specified MenuItem.Name property value.

Add(String, String, String, String, String)

Adds a new menu item to the collection and specifies the item's display text, name, associated image and URL as well as the target of the URL content.

Add(String, String, String, String)

Adds a new menu item to the collection and specifies the item's display text, name, associated image and URL.

Add(String, String, String)

Adds a new menu item to the collection and specifies the item's display text, name and associated image.

Add(String, String)

Adds a new item to the collection and specifies the item's display text and name.

Add(String)

Adds a new item to the collection and specifies the item's display text.

Add()

Adds a new menu item to the end of the collection and returns the newly created object.

MenuItemCollection(MenuItem)

Initializes a new instance of the MenuItemCollection class with the specified menu item that will own the collection.

MenuItemCollection()

Initializes a new instance of the MenuItemCollection class.

Remarks

Use the Items property (collection) to access the submenu items of the current menu item, if any. This collection contains only the menu items at the next level. To access menu items further down the menu tree, use the Items property of a subsequent menu item. If the Items property is the null reference (Nothing in Visual Basic), the current menu item does not have any submenu items.

The Items property