Skip to main content
A newer version of this page is available. .
All docs
V21.1

DockManager.AddPanel(Control, DockingStyle, String) Method

Creates a new panel and docks it to the required position.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v21.1.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

public DockPanel AddPanel(
    Control content,
    DockingStyle dock,
    string caption = null
)

Parameters

Name Type Description
content Control

The panel content.

dock DockingStyle

Specifies the panel position.

Optional Parameters

Name Type Default Description
caption String *null*

The panel caption.

Returns

Type Description
DockPanel

The newly created panel.

See Also