BarEditItem.MaxWidth Property
Gets or sets the item’s maximum width.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v19.2.dll
Declaration
[DefaultValue(-1)]
[SupportedByRibbon(SupportedByRibbonKind.NonSupported)]
public virtual int MaxWidth { get; set; }
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 available free 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 width limits for this item. In the figure below, the font selector’s maximum width is limited.
If the MinWidth property is set to -1, the default width of 20 pixels applies. If the MaxWidth
property is set to -1, the maximum width is not 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.