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


返回指定索引处的项。

```cpp
UnderlyingType & System::Array<T>::operator[](int index)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 索引 | int | 要返回的项的索引 |

### ReturnValue

指定位置处项的引用

## 另见

* Typedef [UnderlyingType](../underlyingtype/)
* Class [Array](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Array::operator[](int) const method


返回指定索引处的项。

```cpp
UnderlyingType const  & System::Array<T>::operator[](int index) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 索引 | int | 要返回的项的索引 |

### ReturnValue

指定位置处项的 const 引用

## 另见

* Typedef [UnderlyingType](../underlyingtype/)
* Class [Array](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
