Skip to main content

TcxTreeListNode.InsertChild(TcxTreeListNode) Method

Inserts a child node into the node’s child collection.

Declaration

function InsertChild(ABeforeNode: TcxTreeListNode): TcxTreeListNode; virtual;

Parameters

Name Type
ABeforeNode TcxTreeListNode

Returns

Type
TcxTreeListNode

Remarks

Call this function to insert a new node into the child collection of this node. The ABeforeNode parameter specifies the node, before which the new node is inserted. The function returns the inserted node.

You can call the node’s AddChildFirst function to insert a node as the first of the node’s children.

Note

Call these functions only when working with a TcxTreeList control in unbound mode.

See Also