Skip to main content

TdxTreeViewNodes.AddChild(TdxTreeViewNode,string) Method

Appends a new child node to the specified node.

Declaration

function AddChild(AParent: TdxTreeViewNode; const S: string): 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.

Returns

Type Description
TdxTreeViewNode

The created node.

Remarks

An AddChild function call creates a new node with the default settings, assigns the S parameter value to the created node’s Caption property, and appends the node to the parent node’s Items collection.

See Also