TreeNode.Name Property

 

Gets or sets the name of the tree node.

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

public string Name { get; set; }

Property Value

Type: System.String

A String that represents the name of the tree node.

The Name of a TreeNode is also the node's key, when the node is part of a TreeNodeCollection. If the node does not have a name, Name returns an empty string ("").

.NET Framework
Available since 2.0
Return to top
Show: