## StringCollection::operator[] method


访问器函数。

```cpp
System::String & System::Collections::Specialized::StringCollection::operator[](int index)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 索引 | int | 获取元素的索引。 |

### ReturnValue

对指定位置字符串的引用，可能是已有的也可能是新创建的。

## 另见

* Class [String](../../../system/string/)
* Class [StringCollection](../)
* Namespace [System::Collections::Specialized](../../)
* Library [Aspose.Page for C++](../../../)
