GH_IndexRanges

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

Properties

Count

#
public int Count { get; }
Gets the number of ranges stored in this collection.

Indexers

Range

#
public GH_IndexRange this[int index] { get; }
Gets the range at the given index.
index (int)Index of range to retrieve.

Methods

InsertRange

#
public bool InsertRange(GH_IndexRange range)
Insert an index range into the collection.
range (GH_IndexRange)Range to insert.
True if the collection was meaningfully modified.

Read

#
public bool Read(GH_IReader reader)
reader (GH_IReader)
Read

RemoveRange

#
public bool RemoveRange(GH_IndexRange range)
Remove an index range from the collection.
range (GH_IndexRange)Range to remove.
True if the collection was meaningfully modified.

ToString

#
public override string ToString()
Object.ToString

Write

#
public bool Write(GH_IWriter writer)
writer (GH_IWriter)
Write