---
title: "System::Collections::Generic::List::GetRange method"
url: "https://reference.aspose.com/tex/cpp/system.collections.generic/list/getrange/"
product: "Aspose.TeX for C++"
description: "System::Collections::Generic::List::GetRange method. Creates slice of list in C++."
---

## List::GetRange method


Creates slice of list.

```cpp
ThisPtr System::Collections::Generic::List<T>::GetRange(int index, int count)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int | [Range](../../../system/range/) start index. |
| count | int | [Range](../../../system/range/) size. |

### ReturnValue

[List](../) containing a slice of current list.

## See Also

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