Docs · API reference · Verso.Abstractions

IToolbarActionContext Interface#

Context provided to toolbar actions, exposing the current cell selection and notebook state. Extends IVersoContext.

public interface IToolbarActionContext : Verso.Abstractions.IVersoContext

Implements IVersoContext

Properties#

ActiveKernelId Property#

Gets the identifier of the currently active language kernel, or null if none is active.

string? ActiveKernelId { get; }

Property Value#

System.String

NotebookCells Property#

Gets the ordered list of all cell models in the notebook.

System.Collections.Generic.IReadOnlyList<Verso.Abstractions.CellModel> NotebookCells { get; }

Property Value#

System.Collections.Generic.IReadOnlyList<CellModel>

SelectedCellIds Property#

Gets the identifiers of the currently selected cells in the notebook UI.

System.Collections.Generic.IReadOnlyList<System.Guid> SelectedCellIds { get; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.Guid>