Skip to main content

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