System.Web.UI.WebControls.TreeView.CollapseAll Method

Closes every node in the tree.

Syntax

public void CollapseAll ()

Remarks

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

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0