TreeNode Class
The TreeNode class represents a node that contains data for a single node in a tree. The following sections describe how its attributes affect a treeview field.
Appearance
When displayed in a treeview field, the following attributes of a treenode affect the appearance of the node:
TextLabel
Specifies the text that is displayed for the node
BitmapLabelIndex
Specifies an index into the ImageList array, and specifies a bitmap label for the node. A treeview field has an attribute ImageList, which is an array of bitmap objects.
SelectedBitmapLabelIndex
Specifies an index into the ImageList array, and specifies a bitmap label, which is displayed when the node is selected
Node Relationships
When a treenode is part of a tree, there are a number of attributes that provide information about the node's relationship to other nodes in the tree. These are all read-only attributes, and cannot be set directly.
ParentNode
Indicates the node's parent node. If the node has no parent (that is, it is the root node of the tree), the ParentNode attribute is NULL.
Children
Indicates the number of immediate child nodes
Descendants
Indicates the number of descendant nodes
FirstChild
Indicates the first child node (NULL if there is no child node)
LastChild
Indicates the last child node
NextSibling
Indicates the next sibling node
PrevSibling
Indicates the previous sibling node