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


Copia todos los elementos en los elementos existentes del arreglo.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) en el que copiar los elementos. |

## Ver también

* 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


Copia los elementos a partir del índice especificado en los elementos existentes del arreglo.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| índice | int | Un índice basado en cero del elemento en la lista representada por el objeto actual desde el cual comenzar a copiar. |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) en el que copiar los elementos. |
| arrayIndex | int | Posición inicial en la matriz de destino. |
| count | int | Número de elementos a copiar. |

## Ver también

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


Copia los elementos de la lista en los elementos existentes del arreglo.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| matriz | System::ArrayPtr\<T\> | Matriz de destino. |
| arrayIndex | int | Índice inicial de la matriz de destino. |

## Ver también

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