## ICollection::CopyTo method


Copia todos los elementos de la colección a los elementos existentes del arreglo.

```cpp
virtual void System::Collections::Generic::ICollection<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex)=0
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| matriz | System::ArrayPtr\<T\> | Matriz de destino. |
| arrayIndex | int | Índice de inicio de la matriz de destino. |

## Ver también

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [ICollection](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
