TdxTreeViewNodes.AddChildObjectFirst(TdxTreeViewNode,string,Pointer) Method
Prepends a new child node to the specified node.
Declaration
function AddChildObjectFirst(AParent: TdxTreeViewNode; const S: string; AData: Pointer): TdxTreeViewNode;
Parameters
Name | Type | Description |
---|---|---|
AParent | TdxTreeViewNode | A target node. If AParent is nil (in Delphi) or nullptr (in C++Builder), the node is added to the root node. |
S | string | A node caption. |
AData | Pointer | A pointer to specific data. |
Returns
Type | Description |
---|---|
TdxTreeViewNode | The created node. |
Remarks
An AddChildObjectFirst function call creates a new node with the default settings, assigns the S and AData parameter values to the created node’s Caption and Data properties, and prepends the node to the parent node’s Items collection.
See Also