## ReadOnlyCollection::IndexOf method


Busca un elemento específico en la colección.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| elemento | const T\& | Elemento a buscar. |

### ReturnValue

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

## Ver también

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