Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxTreeList.InsertEx(TcxTreeListNode,TcxTreeListNode,Pointer) Method

Inserts a new or existing node after the specified node.

#Declaration

Delphi
function InsertEx(ANode: TcxTreeListNode; ASibling: TcxTreeListNode; AData: Pointer = nil): TcxTreeListNode;

#Parameters

Name Type Description
ANode TcxTreeListNode

The inserted node. If you pass nil (in Delphi) or nullptr (in C++Builder), the InsertEx function creates a new node with the default settings.

ASibling TcxTreeListNode

The created node’s sibling. The Insert function inserts the created node immediately after the ASibling node. If you pass nil (in Delphi) or nullptr (in C++Builder), the Insert 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 inserted node.

See Also