CellDiffEntry Class#
A single cell's participation in a notebook diff.
public sealed class CellDiffEntry
Inheritance System.Object → CellDiffEntry
Remarks#
BaselineCell and CurrentCell carry full CellModel instances so consumers can render sources and outputs directly. When a diff result crosses a JSON-RPC boundary, Metadata values arrive as raw JSON elements rather than the primitive types produced by notebook deserialization; consumers should rely on the precomputed change flags on this entry instead of reading into cell metadata values.
Properties#
BaselineCell Property#
Gets or sets the baseline side of the cell, or null when Kind is Added.
public Verso.Abstractions.CellModel? BaselineCell { get; set; }
Property Value#
BaselineIndex Property#
Gets or sets the cell's index in the baseline notebook, or null when Kind is Added.
public System.Nullable<int> BaselineIndex { get; set; }
Property Value#
CellMetadataChanged Property#
True when the cell metadata differs between the two sides.
public bool CellMetadataChanged { get; set; }
Property Value#
CurrentCell Property#
Gets or sets the current side of the cell, or null when Kind is Removed.
public Verso.Abstractions.CellModel? CurrentCell { get; set; }
Property Value#
CurrentIndex Property#
Gets or sets the cell's index in the current notebook, or null when Kind is Removed.
public System.Nullable<int> CurrentIndex { get; set; }
Property Value#
Kind Property#
Gets or sets how this cell differs between the two sides.
public Verso.Abstractions.CellDiffKind Kind { get; set; }
Property Value#
MatchedByContent Property#
True when the pairing came from content-based alignment rather than a matching cell id. Always true for baselines from formats without stable cell ids (e.g. Jupyter imports).
public bool MatchedByContent { get; set; }
Property Value#
OutputsChanged Property#
True when the cell outputs differ between the two sides.
public bool OutputsChanged { get; set; }
Property Value#
SourceChanged Property#
True when the cell source text differs between the two sides.
public bool SourceChanged { get; set; }
Property Value#
TypeOrLanguageChanged Property#
True when the cell type or language differs between the two sides.
public bool TypeOrLanguageChanged { get; set; }