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

BarStaticItemSize Enum

Specifies width settings for a specific BarStaticItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.1.dll

Declaration

public enum BarStaticItemSize

Members

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.

Related API Members

The following properties accept/return BarStaticItemSize values:

Remarks

The width of the BarStaticItem is determined by BarStaticItem.AutoSize property value, the contents of the item and other static items within a particular bar. If several static items within a single bar have their BarStaticItem.AutoSize property value set to BarStaticItemSize.Spring, then all such items are resized to share the bar width accordingly.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BarStaticItemSize enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also