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


Kopierar alla element till befintliga array‑element.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) för att kopiera element till. |

## Se även

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


Kopierar element med start från det angivna indexet till befintliga array‑element.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| index | int | Ett 0-baserat index för elementet i listan som representeras av det aktuella objektet att börja kopiera från |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) för att kopiera element till. |
| arrayIndex | int | Startposition i destinationsarrayen. |
| count | int | Antal element att kopiera. |

## Se även

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


Kopierar listelement till befintliga array‑element.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| array | System::ArrayPtr\<T\> | Målararray. |
| arrayIndex | int | Startindex för destinationsarrayen. |

## Se även

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