System.Windows.Forms.TreeNode.Expand Method

Expands the tree node.

Syntax

public void Expand ()

Remarks

The TreeNode.Expand method expands the current System.Windows.Forms.TreeNode down to the next level of nodes.

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