---
title: "Collection&lt;(Of &lt;(T&gt;)&gt;)..::.CopyTo Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601_CopyTo_2_ca81d490.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Collection&lt;T&gt;.CopyTo Method 
 
Copies the entire [Collection&lt;T&gt;](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md) to a compatible one-dimensional array, starting at the specified index of the target array.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Sub CopyTo ( _array As T(), _arrayIndex As Integer _
)
```
 
```csharp
public void CopyTo(T[] array,int arrayIndex
)
```
 
### Parameters
 
 - array
     - Type:  [T](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md) []
The one-dimensional array that is the destination of the items copied from [Collection&lt;T&gt;](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md). The array must have zero-based indexing.

 - arrayIndex
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
The zero-based index in array at which copying begins.
 
### Implements
 
[ICollection&lt;T&gt;.CopyTo(T\[\], Int32)](http://msdn2.microsoft.com/en-us/0efx51xw)
   
## See Also

### Reference

- [Collection&lt;T&gt; Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
