## Stack::Peek method


获取栈顶元素，但保持其仍在栈中。

```cpp
T System::Collections::Generic::Stack<T>::Peek()
```


### ReturnValue

栈顶元素。

## 另见

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