Table of Contents

Struct LinearRangeSpan<T>

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Represents the value of a LinearRange<T>.

public readonly struct LinearRangeSpan<T> : IEquatable<LinearRangeSpan<T>>

Type Parameters

T

The data type of the underlying option.

Implements
Inherited Members

Remarks

A span is one of four kinds: None, LeftBounded, RightBounded, or Closed.

To create an empty span, use Empty. To create a closed span between two bounds, use the corresponding constructor and pass the option indices and data values for both ends.

StartIndex and EndIndex are option indices into Options; they are -1 when not relevant for the current Kind.

Constructors

LinearRangeSpan(LinearRangeSpanKind, T?, T?, int, int)

Initializes a new instance of LinearRangeSpan<T>.

Properties

Empty

Gets an empty span (Kind = None).

End

Gets the end data value (meaningful when Kind is LeftBounded or Closed).

EndIndex

Gets the index of End in the options list, or -1.

Kind

Gets the kind of span.

Start

Gets the start data value (meaningful when Kind is RightBounded or Closed).

StartIndex

Gets the index of Start in the options list, or -1.

Methods

Equals(object)
Equals(LinearRangeSpan<T>)
GetHashCode()
ToString()

Operators

operator ==(LinearRangeSpan<T>, LinearRangeSpan<T>)
operator !=(LinearRangeSpan<T>, LinearRangeSpan<T>)