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