## ListImpl::IndexOf method


Searches for the specified element and returns the zero-based index of the first occurrence within the entire collection.

```cpp
int32_t System::Collections::CollectionBase<T>::ListImpl::IndexOf(const T &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const T\& | The element to locate in the collection. |

### ReturnValue

The zero-based index of the first occurrence of **value** within the entire collection, if found; otherwise, -1.

## See Also

* Class [ListImpl](../)
* Class [CollectionBase](../../)
* Namespace [System::Collections](../../../)
* Library [Aspose.TeX for C++](../../../../)
