System.Windows.Forms.TreeNode.ExpandAll Method

Expands all the child tree nodes.

Syntax

public void ExpandAll ()

Remarks

The TreeNode.ExpandAll method expands all the child tree nodes assigned to the TreeNode.Nodes collection.

Note:

The state of a System.Windows.Forms.TreeNode is persisted. For example, if the next level of child nodes was not collapsed previously, when the TreeNode.Expand method is called, the child nodes appear in their previously expanded state.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0