## Stack::ToArray method


Converts stack to array.

```cpp
virtual ArrayPtr<T> System::Collections::Generic::Stack<T>::ToArray()
```


### ReturnValue

Newly created element with copies of all elements in stack.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Stack](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
