## Stack::AddRange method


将元素放入栈中。

```cpp
void System::Collections::Generic::Stack<T>::AddRange(IEnumerablePtr collection)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 集合 | IEnumerablePtr | 要推入堆栈的元素容器。 |

## 另见

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