System.Windows.Forms.TreeNode.Remove Method

Removes the current tree node from the tree view control.

Syntax

public void Remove ()

Remarks

When the TreeNode.Remove method is called, the tree node, and any child tree nodes that are assigned to the System.Windows.Forms.TreeNode, are removed from the System.Windows.Forms.TreeView. The removed child nodes are removed from the System.Windows.Forms.TreeView but are still attached to this tree node.

Requirements

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