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


Copia tutti gli elementi in elementi di un array esistente.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) in cui copiare gli elementi. |

## Vedi anche

* 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


Copia gli elementi a partire dall'indice specificato in elementi di un array esistente.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| indice | int | Un indice a base zero dell'elemento nella lista rappresentata dall'oggetto corrente da cui iniziare la copia |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) in cui copiare gli elementi. |
| arrayIndex | int | Posizione iniziale nell'array di destinazione. |
| count | int | Numero di elementi da copiare. |

## Vedi anche

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


Copia gli elementi della lista in elementi di un array esistente.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| array | System::ArrayPtr\<T\> | Array di destinazione. |
| arrayIndex | int | Indice di partenza dell'array di destinazione. |

## Vedi anche

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