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

BarStaticItem.AutoSize Property

Gets or sets the BarStaticItem autosize type.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

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

Property Value

Type Default Description
BarStaticItemSize **Content**

The BarStaticItem autosize type.

Available values:

Name Description
None

Leaves the width of a specific BarStaticItem‘s link at the precompiled state.

Content

Resizes a specific BarStaticItem‘s link so its width matches that link’s contents width.

Spring

Resizes a specific BarStaticItem‘s link so that it consumes the largest possible area of a specific bar.

This option is only in effect when the link is positioned within a status bar specified by the BarManager.StatusBar property.

Remarks

The autosize type is obtained from the BarStaticItemSize enumeration. For instance, Content resizes a specific BarStaticItem so its width matches that item’s contents width.

See Also