RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOutlineNode.GetNextChild Method

Returns the Index value of the next child of an outline node.

Pascal
function GetNextChild(Value: LongInt): LongInt;
C++
__fastcall LongInt GetNextChild(LongInt Value);

Call GetNextChild to obtain the index of the next immediate descendant of a node, following the child node with the index given by the Value parameter. If the child node indicated by Value has no next sibling, or if the child node indicated by Value is not an immediate descendant of the outline node, GetNextChild returns -1. 

Index values reflect a depth-first traversal of the outline. Thus, the node returned by GetNextChild is not simply the node with an index of Value+1, unless the node with index Value has no descendants. GetNextChild allows a breadth-first traversal of the outline. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!