Back to Devexpress

BarStaticItem.AutoSize Property

windowsforms-devexpress-dot-xtrabars-dot-barstaticitem.md

latest2.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(BarStaticItemSize.Content)]
public virtual BarStaticItemSize AutoSize { get; set; }
vb
<DefaultValue(BarStaticItemSize.Content)>
Public Overridable Property AutoSize As BarStaticItemSize

Property Value

TypeDefaultDescription
BarStaticItemSizeContent

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:

NameDescription
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. The Spring mode cannot be used when the MultiLine option is enabled.

|

See Also

Width

BarStaticItem Class

BarStaticItem Members

DevExpress.XtraBars Namespace