Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DockPanel.DockLevel Property

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

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public int DockLevel { get; }

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

See Also