Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

TreeNode Properties

The TreeNode type exposes the following members.

  Name Description
Public property BackColor Gets or sets the background color of the tree node.
Public property Bounds Gets the bounds of the tree node.
Public property Checked Gets or sets a value indicating whether the tree node is in a checked state.
Public property ContextMenu Gets the shortcut menu that is associated with this tree node.
Public property ContextMenuStrip Gets or sets the shortcut menu associated with this tree node.
Public property FirstNode Gets the first child tree node in the tree node collection.
Public property ForeColor Gets or sets the foreground color of the tree node.
Public property FullPath Gets the path from the root tree node to the current tree node.
Public property Handle Gets the handle of the tree node.
Public property ImageIndex Gets or sets the image list index value of the image displayed when the tree node is in the unselected state.
Public property ImageKey Gets or sets the key for the image associated with this tree node when the node is in an unselected state.
Public property Index Gets the position of the tree node in the tree node collection.
Public property IsEditing Gets a value indicating whether the tree node is in an editable state.
Public property IsExpanded Gets a value indicating whether the tree node is in the expanded state.
Public property IsSelected Gets a value indicating whether the tree node is in the selected state.
Public property IsVisible Gets a value indicating whether the tree node is visible or partially visible.
Public property LastNode Gets the last child tree node.
Public property Level Gets the zero-based depth of the tree node in the TreeView control.
Public property Name Gets or sets the name of the tree node.
Public property NextNode Gets the next sibling tree node.
Public property NextVisibleNode Gets the next visible tree node.
Public property NodeFont Gets or sets the font that is used to display the text on the tree node label.
Public property Nodes Gets the collection of TreeNode objects assigned to the current tree node.
Public property Parent Gets the parent tree node of the current tree node.
Public property PrevNode Gets the previous sibling tree node.
Public property PrevVisibleNode Gets the previous visible tree node.
Public property SelectedImageIndex Gets or sets the image list index value of the image that is displayed when the tree node is in the selected state.
Public property SelectedImageKey Gets or sets the key of the image displayed in the tree node when it is in a selected state.
Public property 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.
Public property 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.
Public property Tag Gets or sets the object that contains data about the tree node.
Public property Text Gets or sets the text displayed in the label of the tree node.
Public property ToolTipText Gets or sets the text that appears when the mouse pointer hovers over a TreeNode.
Public property TreeView Gets the parent tree view that the tree node is assigned to.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.