Represents a notebook editor that is attached to a {@link NotebookDocument notebook}. Additional properties of the NotebookEditor are available in the proposed API, which will be finalized later.

Fields

read onlyvisibleRanges:ReadOnlyArray<NotebookRange>

The current visible ranges in the editor (vertically).

@:optionaloptionalread onlyviewColumn:Null<ViewColumn>

The column in which this editor shows.

selections:ReadOnlyArray<NotebookRange>

All selections in this notebook editor.

The primary selection (or focused range) is selections[0]. When the document has no cells, the primary selection is empty { start: 0, end: 0 };

selection:NotebookRange

The primary selection in this notebook editor.

revealRange(range:NotebookRange, ?revealType:NotebookEditorRevealType):Void

Scroll as indicated by revealType in order to reveal the given range.

Parameters:

range

A range.

revealType

The scrolling strategy for revealing range.

read onlynotebook:NotebookDocument

The {@link NotebookDocument notebook document} associated with this notebook editor.