## Stack::ToArray method


将栈转换为数组。

```cpp
virtual ArrayPtr<T> System::Collections::Generic::Stack<T>::ToArray()
```


### ReturnValue

新创建的元素，包含堆栈中所有元素的副本。

## 另见

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