Skip to main content

TcxTreeListNode.IndexOf(TcxTreeListNode) Method

Returns the specified node’s index among this node’s children.

Declaration

function IndexOf(ANode: TcxTreeListNode): Integer;

Parameters

Name Type
ANode TcxTreeListNode

Returns

Type
Integer

Remarks

Call this function to obtain the specified node index among this node’s children. If the node specified via the ANode parameter is not among this node’s children, the function returns -1.

You can also use the node’s Index property to obtain its index among its parent’s child collection.

See Also