Vcl.Outline.TOutlineNode.Index
Delphi
property Index: LongInt read GetIndex;
C++
__property int Index = {read=GetIndex, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Outline.pas Vcl.Outline.hpp |
Vcl.Outline | TOutlineNode |
Description
Identifies the node in the Items array maintained by the outline.
Read Index to determine the row of the outline where the node appears. The first node has an Index value of 1, and subsequent nodes are indexed sequentially. If a node has subnodes, the Index value of the parent node is one less than the Index value of its first descendant.
When nodes in the outline are added, moved, or deleted, the values of the Index properties of all subsequent nodes must be recalculated to be valid. Sometimes, the recalculation of indexes is deferred until all changes to the nodes are complete. To ensure that the value of Index is valid, call the SetUpdateState method of the outline that contains the node.