## IList::IndexOf method


Gets index of first appearance of item in container.

```cpp
virtual int System::Collections::Generic::IList<T>::IndexOf(const T &item) const =0
```


| Parameter | Type | Description |
| --- | --- | --- |
| item | const T\& | Item to look for. |

### ReturnValue

[Index](../../../system/index/) of first appearance of item in container or -1 if not found.

## See Also

* Class [IList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
