TdxTreeViewNodes.InsertNode(TdxTreeViewNode,TdxTreeViewNode,string,Pointer) Method
Inserts a node immediately prior the target node.
Declaration
function InsertNode(ANode: TdxTreeViewNode; ASibling: TdxTreeViewNode; const S: string; AData: Pointer): TdxTreeViewNode;
Parameters
Name | Type | Description |
---|---|---|
ANode | TdxTreeViewNode | An existing tree node. If ANode is nil (in Delphi) or nullptr (in C++Builder), the function creates a new node with the default settings. |
ASibling | TdxTreeViewNode | A target node. If ASibling is nil (in Delphi) or nullptr (in C++Builder), the node is added to the root node as a child. |
S | string | A node caption. |
AData | Pointer | A pointer to additional data. The function call assigns this parameter to the inserted node’s Data property only if the InsertNode function creates the node. |
Returns
Type | Description |
---|---|
TdxTreeViewNode | The inserted node. |
See Also