## ICollection::CopyTo method


Copies all collection elements to existing array elements.

```cpp
virtual void System::Collections::Generic::ICollection<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | System::ArrayPtr\<T\> | Destination array. |
| arrayIndex | int | Destination array start index. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [ICollection](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
