Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarStaticItem.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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(-1)]
[SupportedByRibbon(SupportedByRibbonKind.NonSupported)]
public virtual int MinWidth { get; set; }

#Property Value

Type Default Description
Int32 -1

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

#Remarks

If the AutoSize option is set to Spring, the item is automatically stretched to fill all available free space in the bar. In the figure below, the document name in the status bar 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 item’s minimum and maximum width is limited.

If the MinWidth property is set to -1, the default width of 4 pixels applies. If the MaxWidth property is set to -1, the maximum width is not limited.

See Also