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


Копирует все элементы в существующие элементы массива.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) для копирования элементов в него. |

## См. также

* 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


Копирует элементы, начиная с указанного индекса, в существующие элементы массива.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| индекс | int | Нулевой индекс элемента в списке, представляемом текущим объектом, с которого начинать копирование |
| array | const System::ArrayPtr\<T\>\& | [Array](../../../system/array/) для копирования элементов в него. |
| arrayIndex | int | Начальная позиция в целевом массиве. |
| count | int | Количество элементов для копирования. |

## См. также

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


Копирует элементы списка в существующие элементы массива.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| массив | System::ArrayPtr\<T\> | Массив назначения. |
| arrayIndex | int | Начальный индекс целевого массива. |

## См. также

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