System.Windows.Forms.TreeNodeCollection.Add Method

Creates a new tree node with the specified key and text, and adds it to the collection.

Syntax

public virtual TreeNode Add (string key, string text)

Parameters

key
The name of the tree node.
text
The text to display in the tree node.

Returns

The System.Windows.Forms.TreeNode that was added to the collection.

Remarks

Requirements

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