RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNodes.AddObjectFirst Method

Adds a new node containing data to a tree view.

Pascal
function AddObjectFirst(Sibling: TTreeNode; const S: string; Ptr: Pointer): TTreeNode;
C++
__fastcall TTreeNode AddObjectFirst(TTreeNode Sibling, const AnsiString S, void * Ptr);

The node is added first to the list to which the node specified by the Node parameter belongs. nodes that appear after the added node are moved down one row and reindexed with valid Index values. The S parameter specifies the Text property of the new node. The Ptr parameter specifies the Data property value of the new node. AddObjectFirst returns the node that has been added. 

 

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