MenuSettingsBase.ItemLinkMode Property

Gets or sets a value that specifies how menu items are represented as links within the menu.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll


public ItemLinkMode ItemLinkMode { get; set; }
Public Property ItemLinkMode As ItemLinkMode

Property Value

Type Description

One of the ItemLinkMode enumeration values.


Use the ItemLinkMode property to specify the manner in which menu items are displayed as links within the menu control. This property controls whether the clickable content of each menu item which serves as a link (the item whose MenuItem.NavigateUrl property is defined) extends to the width of the submenu's boundaries (see the ItemLinkMode.ContentBounds value) or is bound by the size of the item's text (see the ItemLinkMode.TextOnly value) or the total size of the text and image (see the ItemLinkMode.TextAndImage).

Note that when the ItemLinkMode property is set to ItemLinkMode.ContentBounds, the menu's items can be hot-tracked (if the hot-track feature is enabled via the MenuSettingsBase.EnableHotTrack property).

The image below shows two Menus in two link modes - ContentBounds and TextOnly.


See Also