# GH_IndexRange struct

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 struct GH_IndexRange : GH_ISerializable
```

Represents a range of indices.

## Constructors

- [GH_IndexRange](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/ctor.md): (2 overloads) Create a new singular range.

## Properties

- [Index0](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/index0.md): Gets the first index in the range.
- [Index1](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/index1.md): Gets the last index in the range.
- [InvalidRange](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/invalidrange.md): (static) Gets the predefined invalid range.
- [IsSingular](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/issingular.md): Gets whether the range has zero length.
- [IsValid](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/isvalid.md): Gets whether this range is valid.
- [Length](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/length.md): Gets the length of the range.
- [MaxValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/maxvalue.md): (static)

## Methods

- [AdjacentTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/adjacentto.md): Tests whether this range is adjacent to another.
- [Contains](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/contains.md): (2 overloads) Tests whether a specified range is entirely contained within this range.
- [Intersection](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/intersection.md): (static) Create the intersection between two ranges.
- [IntersectsWith](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/intersectswith.md): Tests whether certain indices are described by both this and another range.
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/read.md)
- [Split](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/split.md): (static) Split a range into two using an integer index.
- [ToString](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/tostring.md)
- [Union](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/union.md): (static) Create a range which contains both input ranges.
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-indexrange/write.md)
