Skip to main content

DockPanelCollection.Clear() Method

Removes all panels from the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public void Clear()


Use the Clear method to remove all ASPxDockPanel objects from the DockPanelCollection collection. All panels that are docked to the zone which owns the collection are undocked.

To remove an individual panel use the DockPanelCollection.Remove method.

A panel can be added to the collection by using the DockPanelCollection.Add method. To obtain the particular panel in a collection, use the DockPanelCollection.FindByUID method.


See Also