Docs · API reference · Verso.Extensions.Utilities
CellViewStateReader Class#
Reads per-cell view-state metadata written by CellDisplayPropertyProvider
(the verso:ui.* keys). Used by exporters and the CLI to honor a subset
of the user-actionable display settings.
public static class CellViewStateReader
Inheritance System.Object → CellViewStateReader
Methods#
ReadInputCollapsed(CellModel) Method#
Returns whether the cell's input is marked as collapsed.
public static bool ReadInputCollapsed(Verso.Abstractions.CellModel cell);
Parameters#
cell CellModel
Returns#
ReadOutputPreviewLineCount(CellModel) Method#
Returns the cell's configured output preview line count, falling back to Verso.Abstractions.CellViewStateMetadata.DefaultOutputPreviewLineCount when unset or invalid.
public static int ReadOutputPreviewLineCount(Verso.Abstractions.CellModel cell);
Parameters#
cell CellModel
Returns#
ReadOutputVisibility(CellModel) Method#
Returns the cell's output visibility setting, normalized to one of Verso.Abstractions.CellViewStateMetadata.OutputExpanded, Verso.Abstractions.CellViewStateMetadata.OutputPreview, or Verso.Abstractions.CellViewStateMetadata.OutputHidden.
public static string ReadOutputVisibility(Verso.Abstractions.CellModel cell);
Parameters#
cell CellModel