Skip to main content
Tab

MenuItem.Depth Property

Gets the level at which a menu item is displayed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

public int Depth { get; }

Property Value

Type Description
Int32

The level at which a menu item is displayed.

Remarks

Use the Depth property to determine the depth of the menu item. The depth indicates the level at which a menu item is displayed and represents the number of levels of hierarchy between the current menu item and the root menu item. For example, a root menu item has a depth of 0. A submenu item of the root menu item has a depth of 1, and so on.

See Also