## String::CopyTo method


Копирует символы строки в существующие элементы массива. Изменение размера не производится.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| sourceIndex | int | Индекс в строке, с которого начинать чтение. |
| destination | const ArrayPtr\<char_t\>\& | Массив назначения. |
| destinationIndex | int | Индекс в массиве, с которого начинать запись. |
| count | int | Количество символов для копирования. |

## См. также

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