DockPanel.DockLevel Property
Gets a value indicating the nesting level of the dock panel.
Namespace: DevExpress.XtraBars.Docking
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying the nesting level of the panel |
Remarks
Dock panels can be docked to other dock panels thus forming complex window layouts. The DockLevel property returns the nesting level of a panel. If a panel is floating or docked to a form (user control), it has a level of 0. These panels are called root panels and they can be accessed via the DockManager.RootPanels collection. New panels docked to the root panels have their DockLevel properties set to 1, a panel docked to one of them would have a level of 2 and so on.
For hidden panels and panels whose auto-hide functionality is enabled, the DockLevel property returns -1.