Skip to content
ConsoleMonster
Class

BaselineView

ConsoleMonster.Changes

Namespace
ConsoleMonster.Changes
Assembly
ConsoleMonster
Implements
IWidget
Modifiers
sealed

A property matrix with differences highlighted against a reference column. Uses standard table wrapping and sizing.

Inheritance

  • object
  • BaselineView

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 2

Constructors

public BaselineView(BaselineComparison comparison) #

Creates an embeddable baseline matrix.

Parameters

comparison ConsoleMonster.Changes.BaselineComparison required
The structured comparison.

Methods

public Size Measure(Constraints constraints, RenderContext context) #

Returns the size the widget wants within the constraints.

Parameters

constraints ConsoleMonster.Layout.Constraints required
The space offered.
context ConsoleMonster.Canvas.RenderContext required
Profile, theme and glyphs.

Returns

Size The desired size, never larger than the constraints.
public void Render(Region region, RenderContext context) #

Renders into a region. The region may be smaller or larger than the measured size.

Parameters

region ConsoleMonster.Canvas.Region required
The target region.
context ConsoleMonster.Canvas.RenderContext required
Profile, theme and glyphs.

Properties

public BaselineComparison Comparison { get; } #

The comparison shown by this widget.

public string? Title { get; set; } #

An optional markup title.

Extension Methods

public static BaselineView Title(BaselineView baselineView, string? value) #

Sets BaselineView.Title: An optional markup title.

Parameters

baselineView ConsoleMonster.Changes.BaselineView required
The instance.
value string? required
The value.

Returns

BaselineView The same instance.

Examples

// C# initializer or property    // C# fluent
baselineView.Title = value;      baselineView.Title(value);