## ICollection::CopyTo method


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

```cpp
virtual void System::Collections::Generic::ICollection<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex)=0
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 数组 | System::ArrayPtr\<T\> | 目标数组。 |
| arrayIndex | int | 目标数组起始索引。 |

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [ICollection](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
