TcxTreeList.AddFirst(TcxTreeListNode,Pointer) Method
Creates a node and adds it before the first node at the specified node’s nesting level.
Declaration
function AddFirst(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 adds a new node before the first 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