
## CopyTo {#copyto}

Copies the elements of this collection to the specified array, starting at the specified array index.

**Returns:** void Aspose::Tasks::

```cpp
CopyTo(System::ArrayPtr< System::SharedPtr< OutlineCode >> array, int32_t arrayIndex)
```

| Parameter | Description |
| --- | --- |
| array | the specified one-dimensional array to copy elements to |
| arrayIndex | the zero-based index of the specified array at which copying begins. |

