Skip to content
ConsoleMonster
Class

ChangeViewFluent

ConsoleMonster.Changes

Namespace
ConsoleMonster.Changes
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of ChangeView, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • ChangeViewFluent

Methods

public static ChangeView LongValue(ChangeView changeView, int value) #

Sets ChangeView.LongValue: Values longer than this many cells (or with line breaks) show as a line diff instead of in the table (default 60).

Parameters

changeView ConsoleMonster.Changes.ChangeView required
The instance.
value int required
The value.

Returns

ChangeView The same instance.

Examples

// C# initializer or property    // C# fluent
changeView.LongValue = value;    changeView.LongValue(value);
public static ChangeView MaxProperties(ChangeView changeView, int value) #

Sets ChangeView.MaxProperties: The most lines an added or removed object takes in the table, one per compared property (default 6, 0 for no limit); beyond it the last line says "+N more" with ChangeView.MoreHint. The side-by-side view lists all.

Parameters

changeView ConsoleMonster.Changes.ChangeView required
The instance.
value int required
The value.

Returns

ChangeView The same instance.

Examples

// C# initializer or property        // C# fluent
changeView.MaxProperties = value;    changeView.MaxProperties(value);
public static ChangeView Mode(ChangeView changeView, ChangeViewMode value) #

Sets ChangeView.Mode: The view.

Parameters

changeView ConsoleMonster.Changes.ChangeView required
The instance.
value ConsoleMonster.Changes.ChangeViewMode required
The value.

Returns

ChangeView The same instance.

Examples

// C# initializer or property    // C# fluent
changeView.Mode = value;         changeView.Mode(value);
public static ChangeView MoreHint(ChangeView changeView, string? value) #

Sets ChangeView.MoreHint: Plain text after "+N more" saying where to see every value (Show-ConsoleChanges: "-PassThru or -View SideBySide"), or null.

Parameters

changeView ConsoleMonster.Changes.ChangeView required
The instance.
value string? required
The value.

Returns

ChangeView The same instance.

Examples

// C# initializer or property    // C# fluent
changeView.MoreHint = value;     changeView.MoreHint(value);
public static ChangeView Title(ChangeView changeView, string? value) #

Sets ChangeView.Title: A title above the view (markup), or null.

Parameters

changeView ConsoleMonster.Changes.ChangeView required
The instance.
value string? required
The value.

Returns

ChangeView The same instance.

Examples

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