Skip to main content

TdxTreeViewNode.AddChild(string,Pointer) Method

Appends a new child node.

Declaration

function AddChild(ACaption: string = ''; AData: Pointer = nil): TdxTreeViewNode;

Parameters

Name Type Description
ACaption string

A node caption.

AData Pointer

A pointer to specific data.

Returns

Type Description
TdxTreeViewNode

The created node.

Remarks

An AddChild function call creates a new node with the default settings, assigns ACaption and AData parameter values to the created node’s Caption and Data properties, and appends the node to the Items collection.

See Also