System.Windows.Forms.TreeNodeCollection.RemoveByKey Method

Removes the tree node with the specified key from the collection.

Syntax

public virtual void RemoveByKey (string key)

Parameters

key
The name of the tree node to remove from the collection.

Remarks

The TreeNode.Name property corresponds to the key for a System.Windows.Forms.TreeNode in the System.Windows.Forms.TreeNodeCollection.

Requirements

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