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

TreeListMultiSelection.IndexOf(TreeListNode) Method

Determines the index of a specific TreeListNode object in the collection of selected nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public int IndexOf(
    TreeListNode node
)

#Parameters

Name Type Description
node TreeListNode

A TreeListNode object for which to return the position within the collection of selected nodes.

#Returns

Type Description
Int32

The zero-based index of a specific TreeListNode object in the collection of selected nodes.

#Remarks

If a specific node is not selected, the IndexOf method returns -1.

See Also