TreeView::CollapseAll Method ()

 

Closes every node in the tree.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
void CollapseAll()

The CollapseAll method provides a convenient way to close every node in the tree.

The following code example demonstrates how to use the CollapseAll method to collapse all the nodes in the TreeView control at the same time.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: