RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNode.GetLastChild Method

Returns the last immediate child node of the calling node.

Pascal
function GetLastChild: TTreeNode;
C++
__fastcall TTreeNode GetLastChild();

Call GetLastChild to find the last immediate child of a node. If the calling node has no children, GetLastChild returns nil (Delphi) or NULL (C++). GetLastChild returns the same value as Item[Count-1]. 

 

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