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

Bar.CanDockStyle Property

Gets or sets a value specifying the manner in which a bar can be docked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[DefaultValue(BarCanDockStyle.All)]
public BarCanDockStyle CanDockStyle { get; set; }

Property Value

Type Default Description
BarCanDockStyle **All**

A set of flags specifying the manner in which a bar can be docked.

Available values:

Name Description
Floating

Allows a Bar control to float.

Left

Allows a Bar control to be docked to the left side of the owner control.

Top

Allows a Bar control to be docked to the top of the owner control.

Right

Allows a Bar control to be docked to the right side of the owner control.

Bottom

Allows a Bar control to be docked to the bottom of the owner control.

Standalone

Allows a Bar control to be docked to a StandaloneBarDockControl control.

All

Allows a Bar control to be docked to all sides of the owner control. Additionally, the Bar control can be in a floating state.

Remarks

The CanDockStyle property contains a set of BarCanDockStyle enumeration members. For instance, if it contains ‘Floating|Right’, a bar can only float and be docked to the right side of the owner control.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanDockStyle 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