Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CellRange

A cell range represents an ordered pair of two positions in a list of cells. It is guaranteed that start.isBeforeOrEqual(end)

CellRange objects are immutable.

Hierarchy

  • CellRange

Index

Constructors

Properties

Constructors

constructor

  • new CellRange(start: number, end: number): CellRange
  • Create a new range from two positions. If start is not before or equal to end, the values will be swapped.

    Parameters

    • start: number

      A number.

    • end: number

      A number.

    Returns CellRange

Properties

Readonly end

end: number

The end index. It is after or equal to start.

Readonly start

start: number

The start index. It is before or equal to end.

Generated using TypeDoc