Skip to main content

TdxTreeViewNodes.AddChildObject(TdxTreeViewNode,string,Pointer) Method

Appends a new child node to the specified node.

Declaration

function AddChildObject(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 AddChildObject 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 appends the node to the parent node’s Items collection.

See Also