RAD Studio VCL Reference
|
Adds a new node containing data to a tree view.
function AddObjectFirst(Sibling: TTreeNode; const S: string; Ptr: TCustomData): TTreeNode;
__fastcall TTreeNode AddObjectFirst(TTreeNode Sibling, const AnsiString S, TCustomData Ptr);
The node is added first to the list to which the node specified by the Sibling 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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|