## ListImpl::CopyTo method


Copie l'intégralité de la collection vers un [Array](../../../../system/array/) unidimensionnel compatible, en commençant à l'index spécifié du tableau cible.

```cpp
void System::Collections::CollectionBase<T>::ListImpl::CopyTo(const ArrayPtr<T> &array, int32_t index)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| array | const ArrayPtr\<T\>\& | Le [Array](../../../../system/array/) unidimensionnel qui est la destination des éléments copiés depuis la collection. Le [Array](../../../../system/array/) doit avoir un indexage basé sur zéro. |
| indice | int32_t | L'index basé sur zéro dans **array** où la copie commence. |

## Voir aussi

* Typedef [ArrayPtr](../../../../system/arrayptr/)
* Class [ListImpl](../)
* Class [CollectionBase](../../)
* Namespace [System::Collections](../../../)
* Library [Aspose.Font for C++](../../../../)
