## ReadOnlyCollection::CopyTo method


Copies container elements to existing array elements.

```cpp
virtual void System::Collections::ObjectModel::ReadOnlyCollection<T>::CopyTo(System::ArrayPtr<T> array, int index) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | System::ArrayPtr\<T\> | Destination array. |
| index | int | Destination array beginning index. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [ReadOnlyCollection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.PDF for C++](../../../)
