Skip to main content

IndexOf Method

Gets the index of the specified item in the collection.

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public int IndexOf(
T item
)

Parameters

  T
The item.

Return Value

Int32
The index of the item or -1 if the item is not contained in the collection.

Implements

IList(T).IndexOf(T)

See Also

Reference

AvaloniaList(T) Class
Avalonia.Collections Namespace