TdxTreeViewNodes.AddChildFirst(TdxTreeViewNode,string) Method
Prepends a new child node to the specified node.
#Declaration
function AddChildFirst(AParent: TdxTreeViewNode; const S: string): TdxTreeViewNode;
#Parameters
Name | Type | Description |
---|---|---|
AParent | Tdx |
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. |
#Returns
Type | Description |
---|---|
Tdx |
The created node. |
#Remarks
An AddChildFirst function call creates a new node with the default settings, assigns the S parameter value to the created node’s Caption property, and prepends the node to the parent node’s Items collection.