The constructor initializes all the fields to their default values.
The form parameter is used to initialize the Form property. It represents the container control (form or user control) that will display the dock panels owned by the dock manager. The Form property must refer to a valid control (not null), otherwise an exception will occur when adding panels to the dock manager.
The following code shows how to add a dock manager to a form and create a panel.
C# |
using DevExpress.XtraBars.Docking;
DockManager dm = new DockManager();
dm.Form = this;
DockPanel dp1 = dm.AddPanel(DockingStyle.Left);
dp1.Text = "Panel 1";
|
VB |
Imports DevExpress.XtraBars.Docking
Dim dm As DockManager = New DockManager
dm.Form = Me
Dim dp1 As DockPanel = dm.AddPanel(DockingStyle.Left)
dp1.Text = "Panel 1"
|