## List::ToArray method


将列表转换为数组。

```cpp
ArrayPtr<T> System::Collections::Generic::List<T>::ToArray() const
```


### ReturnValue

新创建的数组，包含所有元素的副本。

## 另见

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