Skip to main content

TcxTreeList.AddChildFirst(TcxTreeListNode,Pointer) Method

Creates a node and adds it before the first child node of the specified node.

Declaration

function AddChildFirst(AParent: TcxTreeListNode; AData: Pointer = nil): TcxTreeListNode;

Parameters

Name Type Description
AParent TcxTreeListNode

The created node’s parent. If you pass nil (in Delphi) or nullptr (in C++Builder), the AddChild function appends the created node at the root level.

AData Pointer

A pointer to a custom object you need to associate with the created tree node. The AData parameter value initializes the Data property of the created node.

Returns

Type Description
TcxTreeListNode

The created node.

See Also