Skip to main content

TcxTreeList.Add(TcxTreeListNode,Pointer) Method

Creates a node and adds it after the last node at the specified node’s nesting level.

Declaration

function Add(ASibling: TcxTreeListNode; AData: Pointer = nil): TcxTreeListNode; overload;

Parameters

Name Type Description
ASibling TcxTreeListNode

The created node’s sibling. The Add function uses the ASibling parameter to identify the target tree level. If you pass nil (in Delphi) or nullptr (in C++Builder) as the ASibling parameter, the Add function appends a new 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