ItemsControl.

IndexOf(IEnumerable, object) Method

Summary

Gets the index of an item in a collection.
Namespace
Avalonia.Controls
Containing Type
ItemsControl

Syntax

protected static int IndexOf(IEnumerable items, object item)

Parameters

Name Type Description
items IEnumerable The collection.
item object The item.

Return Value

Type Description
int The index of the item or -1 if the item was not found.