## List::AddRange method


Adds all elements from collection (or itself) to the end of current list.

```cpp
void System::Collections::Generic::List<T>::AddRange(IEnumerablePtr collection)
```


| Parameter | Type | Description |
| --- | --- | --- |
| collection | IEnumerablePtr | Collection to copy elements from. |

## See Also

* Typedef [IEnumerablePtr](../ienumerableptr/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
