AvaloniaList<T>.

IndexOf(T) Method

Summary

Gets the index of the specified item in the collection.
Namespace
Avalonia.Collections
Containing Type
AvaloniaList<T>

Syntax

public int IndexOf(T item)

Parameters

Name Type Description
item T The item.

Return Value

Type Description
int The index of the item or -1 if the item is not contained in the collection.