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

BarStaticItem.AutoSize Property

Gets or sets whether links to this BarStaticItem are automatically stretched to fill all available free space in the containing bar, or the width matches the item’s content.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(BarStaticItemSize.Content)]
public virtual BarStaticItemSize AutoSize { get; set; }

Property Value

Type Default Description
BarStaticItemSize **Content**

A value that specifies whether links to this BarStaticItem are automatically stretched to fill all available free space in the containing bar, or the width matches the item’s content.

Available values:

Name Description
None

The item uses the Width property.

Content

The width matches the item’s content.

Spring

The item is automatically stretched to fill all available free space in a bar.

See Also