IndexOf()

ReadOnlyCollection::IndexOf(const T&) const method

Looks for specific item in collection.

virtual int System::Collections::ObjectModel::ReadOnlyCollection<T>::IndexOf(const T &item) const override

Arguments

ParameterTypeDescription
itemconst T&Item to look for.

Return Value

Index of the first occurrence of specified item or negative value if not found.

See Also