Back to Devexpress

DockPanel.RemovePanel(DockPanel) Method

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-dot-removepanel-x28-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-x29.md

latest2.0 KB
Original Source

DockPanel.RemovePanel(DockPanel) Method

Destroys the specified child panel.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void RemovePanel(
    DockPanel panel
)
vb
Public Sub RemovePanel(
    panel As DockPanel
)

Parameters

NameTypeDescription
panelDockPanel

A DockPanel object representing the child of the current panel which must be destroyed.

|

Remarks

The RemovePanel method destroys the specified child of the current panel. The child panels of the specified child will be destroyed recursively. If the panel passed as this method’s parameter is not the current panel’s child, the RemovePanel method will do nothing.

To destroy all the panels that belong to the dock manager, you can use the DockManager.Clear method.

See Also

AddPanel()

Clear()

Hide()

RemovePanel(DockPanel)

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace