System.Windows.Forms.TreeNodeCollection.Add Method

Adds a new tree node with the specified label text to the end of the current tree node collection.

Syntax

public virtual TreeNode Add (string text)

Parameters

text
The label text displayed by the System.Windows.Forms.TreeNode.

Returns

A System.Windows.Forms.TreeNode that represents the tree node being added to the collection.

Remarks

Requirements

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