Vcl.ComCtrls.TTreeNodes.AddChildFirst
Delphi
function AddChildFirst(Parent: TTreeNode; const S: string): TTreeNode;
C++
TTreeNode* __fastcall AddChildFirst(TTreeNode* Parent, const System::UnicodeString S);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTreeNodes |
Description
Adds a new tree node to a tree view.
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.