## StringCollectionPtr::operator[] method


Accessor function.

```cpp
System::String & System::Collections::Specialized::StringCollectionPtr::operator[](int idx) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| idx | int | Index to get element at. |

### ReturnValue

Reference to string at specified position, either existing or newly created.

## See Also

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