TreeNode Properties
.NET Framework 4.5
The TreeNode type exposes the following members.
| Name | Description | |
|---|---|---|
|
BackColor | Gets or sets the background color of the tree node. |
|
Bounds | Gets the bounds of the tree node. |
|
Checked | Gets or sets a value indicating whether the tree node is in a checked state. |
|
ContextMenu | Gets the shortcut menu that is associated with this tree node. |
|
ContextMenuStrip | Gets or sets the shortcut menu associated with this tree node. |
|
FirstNode | Gets the first child tree node in the tree node collection. |
|
ForeColor | Gets or sets the foreground color of the tree node. |
|
FullPath | Gets the path from the root tree node to the current tree node. |
|
Handle | Gets the handle of the tree node. |
|
ImageIndex | Gets or sets the image list index value of the image displayed when the tree node is in the unselected state. |
|
ImageKey | Gets or sets the key for the image associated with this tree node when the node is in an unselected state. |
|
Index | Gets the position of the tree node in the tree node collection. |
|
IsEditing | Gets a value indicating whether the tree node is in an editable state. |
|
IsExpanded | Gets a value indicating whether the tree node is in the expanded state. |
|
IsSelected | Gets a value indicating whether the tree node is in the selected state. |
|
IsVisible | Gets a value indicating whether the tree node is visible or partially visible. |
|
LastNode | Gets the last child tree node. |
|
Level | Gets the zero-based depth of the tree node in the TreeView control. |
|
Name | Gets or sets the name of the tree node. |
|
NextNode | Gets the next sibling tree node. |
|
NextVisibleNode | Gets the next visible tree node. |
|
NodeFont | Gets or sets the font that is used to display the text on the tree node label. |
|
Nodes | Gets the collection of TreeNode objects assigned to the current tree node. |
|
Parent | Gets the parent tree node of the current tree node. |
|
PrevNode | Gets the previous sibling tree node. |
|
PrevVisibleNode | Gets the previous visible tree node. |
|
SelectedImageIndex | Gets or sets the image list index value of the image that is displayed when the tree node is in the selected state. |
|
SelectedImageKey | Gets or sets the key of the image displayed in the tree node when it is in a selected state. |
|
StateImageIndex | Gets or sets the index of the image that is used to indicate the state of the TreeNode when the parent TreeView has its CheckBoxes property set to false. |
|
StateImageKey | Gets or sets the key of the image that is used to indicate the state of the TreeNode when the parent TreeView has its CheckBoxes property set to false. |
|
Tag | Gets or sets the object that contains data about the tree node. |
|
Text | Gets or sets the text displayed in the label of the tree node. |
|
ToolTipText | Gets or sets the text that appears when the mouse pointer hovers over a TreeNode. |
|
TreeView | Gets the parent tree view that the tree node is assigned to. |