Skip to main content

BootstrapMenu.ItemAutoWidth Property

Gets or sets a value that specifies whether root item widths are calculated automatically, so that root items are resized (stretched or shrinked) proportionally to the menu control’s width.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[DefaultValue(false)]
public bool ItemAutoWidth { get; set; }

Property Value

Type Default Description
Boolean false

true, if item widths are calculated automatically; otherwise, false.

Remarks

Use the ItemAutoWidth property to control how root item widths are calculated within a BootstrapMenu control.

If the ItemAutoWidth property is set to true (the default behavior), the widths of root menu items depend upon a menu control’s width specified via the Width property. In this case, root items are automatically resized in proportion to the defined menu width. An individual item’s width might depend upon the length of the item’s text.

See Also