Skip to main content

IndexOf Method

Return the index where the given item appears, or -1 if doesn't appear.

Definition​

Namespace: Avalonia.Collections
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public int IndexOf(
Object item
)

Parameters​

  Object
Item we are searching for

Return Value​

Int32
Index of specified item

Implements​

IList.IndexOf(Object)

See Also​

Reference​

DataGridCollectionView Class
Avalonia.Collections Namespace