Theia API Documentation v1.77.0
    Preparing search index...

    Class NotebookRange

    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

    Index
    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.

    • Derive a new range for this range.

      Parameters

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

        An object that describes a change to this range.

      Returns NotebookRange

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