[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TTreeNode.AbsoluteIndex

The absolute ordinal position for the node, regardless of its level or ancestry, in the tree node hierarchy.

## Declaration

Source position: comctrls.pp line 3149

`public property TTreeNode.AbsoluteIndex : Integer read GetAbsoluteIndex;`

## Description

AbsoluteIndex is a read-only Integer property which contains the absolute ordinal position for the tree node, regardless of its parent or level, in the hierarchy of tree nodes. For example:

- The first node in the tree hierarchy has the absolute index position 0.
- The first child nodes (in Items) has an index position which is 1 larger than the AbsoluteIndex for its Parent node.
- The next sibling node has an absolute index position which is incremented by 1 plus the SubTreeCount value from its sibling.

## See also

TTreeNode.Parent |  | Parent node for the current tree node.
TTreeNode.SubtreeCount |  | The number of subtrees in the ancestor nodes for the class instance.
TTreeNode.Level |  | The number of ancestor nodes for the current tree node.
TTreeNode.Index |  | Ordinal position for the node in its parent node.
TTreeNode.Items |  | Provides indexed access to the child nodes for the current node.
TTreeNode.GetNextSibling |  | Returns the next node in the tree hierarchy at the same level as the current node.
TTreeNode.GetPrevSibling |  | GetPrevSibling - returns the previous node in the same level as the current node.
TTreeNode.GetFirstChild |  | Gets the first child node in the Items property.