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


Hämtar värdet vid angivet index.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| index | int | [Index](../../../system/index/) för att hämta värde från. |

### ReturnValue

Referens till befintligt värde på angivet index.

## Se även

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


Hämtar värdet vid angivet index.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| index | int | [Index](../../../system/index/) för att hämta värde från. |

### ReturnValue

Konstant referens till befintligt värde på angivet index.

## Se även

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