RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOutlineNode.GetPrevChild Method

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

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

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

Index values reflect a depth-first traversal of the outline. Thus, the previous sibling of the child node indicated by Value is not simply one less than Value, unless that previous sibling has no descendants. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!