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

TreeList.GetNodeIndex(TreeListNode) Method

Gets the specified node’s index.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#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.

See Also