## ReadOnlyCollection::IndexOf method


Söker efter ett specifikt objekt i samlingen.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| objekt | const T\& | Objekt att söka efter. |

### ReturnValue

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

## Se även

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