IndexOf Method
Gets the index of the specified item in the collection.
Definition
Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public int IndexOf(
	T item
)
Public Function IndexOf ( 
	item As T
) As Integer
abstract IndexOf : 
        item : 'T -> int 
override IndexOf : 
        item : 'T -> int 
Parameters
- T
- The item.
Return Value
Int32
The index of the item or -1 if the item is not contained in the collection.