RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNode.IndexOf Method

Returns the position of an immediate child node of the calling node.

Pascal
function IndexOf(Value: TTreeNode): Integer;
C++
__fastcall int IndexOf(TTreeNode Value);

Call IndexOf to obtain the position of a child node among the children of the calling node. If Value isn't an immediate child of the calling node, IndexOf returns -1. The first child node has an index on 0, the second an index of 1, and so on. 

 

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