Skip to main content
Tab

MenuItemCollection.Add() Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public MenuItem Add()

Returns

Type Description
MenuItem

A MenuItem object representing the newly created menu item.

Remarks

Use the Add method to add a new menu item with the default settings to the MenuItemCollection object. You can modify properties of the obtained object to control the appearance and behavior of the added menu item.

See Also