All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
Bar

BarEditItem.MinWidth Property

Gets or sets the item's minimum width in auto-size mode. Not in effect in a ribbon.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.2.dll

Declaration

[DefaultValue(-1)]
[SupportedByRibbon(SupportedByRibbonKind.NonSupported)]
public virtual int MinWidth { get; set; }
<DefaultValue(-1)>
<SupportedByRibbon(SupportedByRibbonKind.NonSupported)>
Public Overridable Property MinWidth As Integer

Property Value

Type Default Description
Int32

-1

An integer value that specifies the item's minimum width.

Remarks

If the AutoFillWidth option is enabled, the item is automatically stretched to fill all the available space in the bar. In the figure below, the font selector is automatically stretched when the form is resized.

The MinWidth and MaxWidth properties specify the minimum and maximum widths for this item. In the figure below, the font selector's minimum and maximum widths are limited.

NOTE

The AutoFillWidthInMenu option allows you to automatically stretch the item when it is displayed in a menu. The MinWidth and MaxWidth properties are not in effect for items in menus.

See Also