## ReadOnlyCollection::IndexOf method


Ищет конкретный элемент в коллекции.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| элемент | const T\& | Элемент для поиска. |

### ReturnValue

[Index](../../../system/index/) of the first occurrence of specified item or negative value if not found.

## См. также

* Class [ReadOnlyCollection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.PDF for C++](../../../)
