## Collection::IndexOf method


Busca un elemento en la colección.

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


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

### ReturnValue

[Index](../../../system/index/) of first occurrence of specified item or -1 if not found.

## Ver también

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