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


Kopiert alle Elemente in vorhandene Array-Elemente.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) zum Kopieren der Elemente. |

## Siehe auch

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


Kopiert Elemente beginnend ab dem angegebenen Index in vorhandene Array-Elemente.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Index | int | Ein nullbasierter Index des Elements in der von dem aktuellen Objekt dargestellten Liste, ab dem das Kopieren beginnen soll |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) zum Kopieren der Elemente. |
| arrayIndex | int | Anfangsposition im Zielarray. |
| count | int | Anzahl der zu kopierenden Elemente. |

## Siehe auch

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


Kopiert Listenelemente in vorhandene Array-Elemente.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Array | System::ArrayPtr\<T\> | Ziel-Array. |
| arrayIndex | int | Startindex des Zielarrays. |

## Siehe auch

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