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

BarOptions.BarState Property

Gets or sets whether the bar is collapsed or in its normal state.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[XtraSerializableProperty]
[DefaultValue(BarState.Expanded)]
public virtual BarState BarState { get; set; }

Property Value

Type Default Description
DevExpress.XtraBars.BarState **Expanded**

A BarState enumerator value that specifies the bar’s expansion state.

Property Paths

You can access this nested property as listed below:

Object Type Path to BarState
Bar
.OptionsBar.BarState

Remarks

If the BarOptions.AllowCollapse property is set to true, a bar can be collapsed. An end-user can collapse a bar by double-clicking its drag widget. The BarState property allows the bar’s expansion state to be changed in code.

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

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