## StringCollection::CopyTo method


Copy elements to existing arra elements.

```cpp
void System::Collections::Specialized::StringCollection::CopyTo(const ArrayPtr<System::String> &arr, const int32_t index) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| arr | const ArrayPtr\<System::String\>\& | [Array](../../../system/array/) to copy data to. |
| index | const int32_t | Index in destination array to start data copying at. |

## See Also

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