Skip to content

GH_IndexRange

Public Struct

Represents a range of indices.

Namespace: Grasshopper.Kernel.Data

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public struct GH_IndexRange : GH_ISerializable

The GH_IndexRange type exposes the following members.

Constructors

Name

Description


Public Method

Create a new singular range.


Public Method

Create a new range.


Properties

Name

Description


Public Property

Gets the first index in the range.


Public Property

Gets the last index in the range.


Public Property
Static Member

Gets the predefined invalid range.


Public Property

Gets whether the range has zero length.


Public Property

Gets whether this range is valid.


Public Property

Gets the length of the range.


Public Property
Static Member

Methods

Name

Description


Public Method

Tests whether this range is adjacent to another.


Public Method

Tests whether a specified range is entirely contained within this range.


Public Method

Tests whether a specified index is defined by this range.


Public Method
Static Member

Create the intersection between two ranges.


Public Method

Tests whether certain indices are described by both this and another range.


Public Method
Static Member

Split a range into two using an integer index.


Public Method

(Overrides ValueType.ToString..)


Public Method
Static Member

Create a range which contains both input ranges.