Back to Devexpress

DockPanel.DockLevel Property

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-fa912b17.md

latest1.8 KB
Original Source

DockPanel.DockLevel Property

Gets a value indicating the nesting level of the dock panel.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public int DockLevel { get; }
vb
<Browsable(False)>
Public ReadOnly Property DockLevel As Integer

Property Value

TypeDescription
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.

See Also

Index

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace