Back to Devexpress

BarOptions.BarState Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions-1874d7b2.md

latest1.9 KB
Original Source

BarOptions.BarState Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(BarState.Expanded)]
[XtraSerializableProperty]
public virtual BarState BarState { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(BarState.Expanded)>
Public Overridable Property BarState As BarState

Property Value

TypeDefaultDescription
DevExpress.XtraBars.BarStateExpanded

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

See Also

AllowCollapse

DrawDragBorder

ExpandAnimationDuration

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace