Skip to main content
A newer version of this page is available. .

TreeList.GetNodeIndex(TreeListNode) Method

Gets the specified node’s index.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

public int GetNodeIndex(
    TreeListNode node
)

Parameters

Name Type Description
node TreeListNode

A TreeListNode object representing the node whose index is to be obtained.

Returns

Type Description
Int32

An integer value representing the destination position of the node within its parent node’s child collection. -1 if the specified node is a null reference or doesn’t belong to any node collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetNodeIndex(TreeListNode) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also