DockManager.AddPanel(Control, DockingStyle, String) Method
Creates a new panel and docks it to the required position.
Namespace: DevExpress.XtraBars.Docking
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
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. |
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