## String::CopyTo method


Copies string characters into existing array elements. No resize is being done.

```cpp
void System::String::CopyTo(int sourceIndex, const ArrayPtr<char_t> &destination, int destinationIndex, int count) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| sourceIndex | int | In-string index to start reading from. |
| destination | const ArrayPtr\<char_t\>\& | Destination array. |
| destinationIndex | int | In-array index to start writing from. |
| count | int | Number of characters to copy. |

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
