System.Windows.Forms.TreeNode.Text Property

Gets or sets the text displayed in the label of the tree node.

Syntax

[System.ComponentModel.Localizable(true)]
public string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The maximum number of characters that a System.Windows.Forms.TreeNode can display is 259. If a string that has more than 259 characters is assigned to this property, only the first 259 characters are displayed.

This property cannot be set by the user if the TreeView.LabelEdit property of the parent System.Windows.Forms.TreeView is set to false. The alternative to explicitly setting this property is to create the tree node by using one of the TreeNode.#ctor constructors that has a string parameter that represents the TreeNode.Text property. The label is displayed next to the System.Windows.Forms.TreeNode image, if one is displayed.

Requirements

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