## Collection::operator[](int) method


Gets value at specified index.

```cpp
T & System::Collections::ObjectModel::Collection<T>::operator[](int index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int | Index to get value from. |

### ReturnValue

Reference to existing value at specified index.

## See Also

* Class [Collection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.PUB for C++](../../../)
## Collection::operator[](int) const method


Gets value at specified index.

```cpp
const T & System::Collections::ObjectModel::Collection<T>::operator[](int index) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int | Index to get value from. |

### ReturnValue

Const reference to existing value at specified index.

## See Also

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