## 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.Font for C++](../../../)
