## StringCollection::CopyTo method


将元素复制到现有数组元素中。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| arr | const ArrayPtr\<System::String\>\& | [Array](../../../system/array/) 用于复制数据。 |
| 索引 | const int32_t | 在目标数组中开始复制数据的索引位置。 |

## 另见

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