Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • NotebookRange

Index

Constructors(1)

Properties(3)

Methods(1)

Constructors(1)

constructor

  • Create a new notebook range. If start is not before or equal to end, the values will be swapped.

    Parameters

    • start: number

      start index

    • end: number

      end index.

    Returns NotebookRange

Properties(3)

Readonly start

start: number

The zero-based start index of this range.

Readonly end

end: number

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

Readonly isEmpty

isEmpty: boolean

true if start and end are equal.

Methods(1)

with

  • Derive a new range for this range.

    Parameters

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

      An object that describes a change to this range.

      • Optional start?: number

        New start index, defaults to this.start.

      • Optional end?: number

        New end index, defaults to this.end.

    Returns NotebookRange

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

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网