Represents a cell of a {@link NotebookDocument notebook}, either a {@link NotebookCellKind.Code code}-cell or {@link NotebookCellKind.Markup markup}-cell.

NotebookCell instances are immutable and are kept in sync for as long as they are part of their notebook.

Fields

finalread onlyoutputs:ReadOnlyArray<NotebookCellOutput>

The outputs of this cell.

finalread onlynotebook:NotebookDocument

The {@link NotebookDocument notebook} that contains this cell.

finalread onlymetadata:DynamicAccess<Any>

The metadata of this cell. Can be anything but must be JSON-stringifyable.

finalread onlykind:NotebookCellKind

The kind of this cell.

finalread onlyindex:Int

The index of this cell in its {@link NotebookDocument.cellAt containing notebook}. The index is updated when a cell is moved within its notebook. The index is -1 when the cell has been removed from its notebook.

@:optionaloptionalfinalread onlyexecutionSummary:Null<NotebookCellExecutionSummary>

The most recent {@link NotebookCellExecutionSummary execution summary} for this cell.

finalread onlydocument:TextDocument

The {@link TextDocument text} of this cell, represented as text document.