Skip to main content

MenuStyle.ItemSpacing Property

Gets or sets the amount of space between the sub-menu items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


[DefaultValue(typeof(Unit), "")]
public virtual Unit ItemSpacing { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit that represents the spacing value.

Property Paths

You can access this nested property as listed below:

Object Type Path to ItemSpacing


Use the ItemSpacing property to define the spacing between the adjacent menu items of a menu level that the current style applies to. If separators are visible, the item spacing is displayed before and after a separator.


The ItemSpacing property value can be explicitly defined in certain themes, so specifying it has no effect.


To specify the amount of space between the root items, use the ASPxMenuBase.Items property.

See Also