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.AddPanel() Method

Creates a new dock panel and docks it to the current dock panel.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public DockPanel AddPanel()

#Returns

Type Description
DockPanel

A DockPanel object representing the dock panel created by this method.

#Remarks

If the current dock panel has no child panels, a split container which owns the current and newly created panels is automatically created. Otherwise, if the current panel contains any dock panels (children), a newly created panel is added to the collection of panels owned by the current panel.

You can also use the dock manager’s DockManager.AddPanel method to create and add a panel to the form (user control).

See Also