Vcl.ComCtrls.TTreeNodes.InsertNode
Delphi
function InsertNode(Node, Sibling: TTreeNode; const S: string; Ptr: TCustomData): TTreeNode;
C++
TTreeNode* __fastcall InsertNode(TTreeNode* Node, TTreeNode* Sibling, const System::UnicodeString S, void * Ptr);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTreeNodes |
Description
Inserts a tree node with data.
Call InsertNode to add a new sibling to the Node parameter, immediately preceding Node. The S parameter specifies the Text property of the new node. The Ptr parameter specifies data associated with the node. InsertNode returns the new node.
Note: The memory referenced by Ptr is not freed when the tree nodes object is freed.