A notebook range represents an ordered pair of two cell indices. It is guaranteed that start is less than or equal to end.

Implemented by

Constructors

Properties

Methods

Constructors

Properties

end: number

The exclusive end index of this range (zero-based).

isEmpty: boolean

true if start and end are equal.

start: number

The zero-based start index of this range.

Methods

  • Derive a new range for this range.

    Parameters

    • change: {
          end?: number;
          start?: number;
      }

      An object that describes a change to this range.

      • Optional end?: number
      • Optional start?: number

    Returns NotebookRange

    A range that reflects the given change. Will return this range if the change is not changing anything.