RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNodes.AddFirst Method

Adds a new tree node to a tree view.

Pascal
function AddFirst(Sibling: TTreeNode; const S: string): TTreeNode;
C++
__fastcall TTreeNode AddFirst(TTreeNode Sibling, const AnsiString S);

The node is added as the first sibling of the node specified by the Sibling parameter. Nodes that appear after the added node are moved down one row and re-indexed with valid Index values. The S parameter specifies the Text property of the new node. AddFirst 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!