Skip to main content
A newer version of this page is available. .
Tab

MenuStyle.ItemSpacing Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[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
HtmlEditorPasteOptionsBarStyles
.PasteOptionsBar .ItemSpacing

Remarks

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.

Note

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

Menu_SubItemSpacing

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

See Also