---
title: "VObjectCollection..::.CopyTo Method (array&lt;IVObject&gt;[]()[], Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VObjectCollection_CopyTo_2_6815598b.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/)

# VObjectCollection.CopyTo Method (IVObject[], Int32)
 
Copies the collection to a one-dimensional array, starting at the specified index of the target array.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)
 
## Syntax
  
```
Public Sub CopyTo ( _array As IVObject(), _index As Integer _
)
```
 
```csharp
public void CopyTo(IVObject[] array,int index
)
```
 
### Parameters
 
 - array
     - Type:  [Aurigma.GraphicsMill.WinControls.IVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IVObject.htm.md) []
A one-dimensional array that is the destination of the v-objects copied from the collection.

 - index
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
A zero-based index in the array at which copying begins.
   
## See Also

### Reference

- [VObjectCollection Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_VObjectCollection.htm.md)
- [CopyTo Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_VObjectCollection_CopyTo.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
