RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNodes.AddChildFirst Method

Adds a new tree node to a tree view.

Pascal
function AddChildFirst(Parent: TTreeNode; const S: string): TTreeNode;
C++
__fastcall TTreeNode AddChildFirst(TTreeNode Parent, const AnsiString S);

Use AddChildFirst to insert a node as the first child of the node specified by the Parent parameter. The S parameter specifies the Text property of the new node. Nodes that appear after the added node are moved down one row and reindexed with valid Index values. AddChildFirst returns the node that has been added. 

 

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