# GH_IndexRanges class

Namespace: [Grasshopper.Kernel.Data](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.data.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_IndexRanges : GH_ISerializable
```

Represents a sorted, non-colliding collection of index ranges.

## Properties

- [Count](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/count.md): Gets the number of ranges stored in this collection.

## Indexers

- [Range](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/item.md): Gets the range at the given index.

## Methods

- [InsertRange](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/insertrange.md): Insert an index range into the collection.
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/read.md)
- [RemoveRange](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/removerange.md): Remove an index range from the collection.
- [ToString](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/tostring.md)
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexranges/write.md)
