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

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.v19.1.dll

Declaration

[XtraSerializableProperty]
public DockingStyle Dock { get; set; }

Property Value

Type Description
DockingStyle

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

Available values:

Name Description
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 is contained within another panel (split or tab container).

It’s not possible to make a dock panel fill the 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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Dock 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