Back to Devexpress

DockPanel.Dock Property

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-eec4c5fd.md

latest2.4 KB
Original Source

DockPanel.Dock Property

Gets or sets a value specifying how the dock panel is aligned within its parent control.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[XtraSerializableProperty]
public DockingStyle Dock { get; set; }
vb
<XtraSerializableProperty>
Public Property Dock As DockingStyle

Property Value

TypeDescription
DockingStyle

A DockingStyle enumeration value specifying the manner in which a panel is docked.

|

Available values:

NameDescription
Float

The dock panel floats.

| | Top |

The dock panel’s top edge is docked to the top of its containing control.

| | Bottom |

The dock panel’s bottom edge is docked to the bottom of its containing control.

| | Left |

The dock panel’s left edge is docked to the left side of its containing control.

| | Right |

The dock panel’s right edge is docked to the right side of its containing control.

| | Fill |

The dock panel occupies the center of another panel (split or tab container) or form/user control.

|

Remarks

Use the Dock property to specify how the dock panel is to be aligned within its parent control. The available dock styles are listed in the DockingStyle enumeration.

See Also

RootPanels

RootPanel

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace