System.Web.UI.WebControls.TreeNode.Expand Method

Expands the current tree node.

Syntax

public void Expand ()

Remarks

Use the TreeNode.Expand method to conveniently expand the current node.

Note:

As an alternative, you can also set the TreeNode.Expanded property to true.

To expand the current node and all its child nodes, consider using the TreeNode.ExpandAll method.

TreeView.ExpandAll will expand all the nodes in the entire tree.

The value of this property is stored in view state.

Requirements

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