Skip to main content
All docs
V24.2

DockManager.AddPanel(Control, Point, String) Method

Creates a new floating panel with the target content.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public DockPanel AddPanel(
    Control content,
    Point floatLocation,
    string caption = null
)

Parameters

Name Type Description
content Control

The panel content.

floatLocation Point

The panel float location.

Optional Parameters

Name Type Default Description
caption String null

The panel caption.

Returns

Type Description
DockPanel

The newly created panel.

Remarks

The following example demonstrates how to use overloaded DockManager.AddPanel methods to create dock panels with the specified content (UI controls):

// Creates a panel with the specifed UI control, and docks the pacel to the specified position.
DockPanel panel1 = dockManager1.AddPanel(new PropertyGrid(), DockingStyle.Float, "Panel 1");

// Creates a floating panel with the specifed UI control.
DockPanel panel2 = dockManager1.AddPanel(new PropertyGrid(), new Point(500,500), "Panel 2");
See Also