Back to Devexpress

TreeList.GetNodeIndex(TreeListNode) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-getnodeindex-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-x29.md

latest2.0 KB
Original Source

TreeList.GetNodeIndex(TreeListNode) Method

Gets the specified node’s index.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public int GetNodeIndex(
    TreeListNode node
)
vb
Public Function GetNodeIndex(
    node As TreeListNode
) As Integer

Parameters

NameTypeDescription
nodeTreeListNode

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

|

Returns

TypeDescription
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

GetNodeByVisibleIndex(Int32)

SetNodeIndex(TreeListNode, Int32)

Nodes

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace