System::Collections::ObjectModel::Collection::IndexOf method

Collection::IndexOf method

Looks for element in collection.

int System::Collections::ObjectModel::Collection<T>::IndexOf(const T &item) const override
ParameterTypeDescription
itemconst T&Item to look for.

ReturnValue

Index of first occurrence of specified item or -1 if not found.

See Also