## List::GetRange method


创建列表的切片。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| 索引 | int | 范围起始索引。 |
| count | int | 范围大小。 |

### ReturnValue

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

## 另见

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