Docs · API reference · Verso.Abstractions

ICellRenderContext Interface#

Context provided to cell renderers when rendering a cell's visual output. Extends IVersoContext with cell layout and state information.

public interface ICellRenderContext : Verso.Abstractions.IVersoContext

Implements IVersoContext

Properties#

CellId Property#

Gets the unique identifier of the cell being rendered.

System.Guid CellId { get; }

Property Value#

System.Guid

CellMetadata Property#

Gets the read-only metadata dictionary attached to the cell.

System.Collections.Generic.IReadOnlyDictionary<string,object> CellMetadata { get; }

Property Value#

System.Collections.Generic.IReadOnlyDictionary<System.String,System.Object>

Dimensions Property#

Gets the available rendering dimensions (width and height) in device-independent units.

(double Width,double Height) Dimensions { get; }

Property Value#

<System.Double,System.Double>

IsSelected Property#

Gets a value indicating whether the cell is currently selected in the notebook UI.

bool IsSelected { get; }

Property Value#

System.Boolean