Back to Devexpress

Bar.CanDockStyle Property

windowsforms-devexpress-dot-xtrabars-dot-bar-7d556620.md

latest2.5 KB
Original Source

Bar.CanDockStyle Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(BarCanDockStyle.All)]
public BarCanDockStyle CanDockStyle { get; set; }
vb
<DefaultValue(BarCanDockStyle.All)>
Public Property CanDockStyle As BarCanDockStyle

Property Value

TypeDefaultDescription
BarCanDockStyleAll

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

|

Available values:

NameDescription
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.

See Also

BarCanDockStyle

Bar Class

Bar Members

DevExpress.XtraBars Namespace