## List::CopyTo(const System::ArrayPtr\<T\>\&) method


Kopieert alle elementen naar bestaande array‑elementen.

```cpp
void System::Collections::Generic::List<T>::CopyTo(const System::ArrayPtr<T> &array)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) om elementen in te kopiëren. |

## Zie ook

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::CopyTo(int, const System::ArrayPtr\<T\>\&, int, int) method


Kopieert elementen beginnend bij de opgegeven index naar bestaande array‑elementen.

```cpp
void System::Collections::Generic::List<T>::CopyTo(int index, const System::ArrayPtr<T> &array, int arrayIndex, int count)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| index | int | Een nulgebaseerde index van het element in de lijst die wordt vertegenwoordigd door het huidige object om vanaf te beginnen met kopiëren |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) om elementen in te kopiëren. |
| arrayIndex | int | Beginpositie in bestemmingsarray. |
| count | int | Aantal elementen om te kopiëren. |

## Zie ook

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::CopyTo(System::ArrayPtr\<T\>, int) method


Kopieert lijst‑elementen naar bestaande array‑elementen.

```cpp
void System::Collections::Generic::List<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex) override
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| array | System::ArrayPtr\<T\> | Doel-array. |
| arrayIndex | int | Startindex van de bestemmingsarray. |

## Zie ook

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