Skip to content
ConsoleMonster
Class

RecordViewFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of RecordView, 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
  • RecordViewFluent

Methods

public static RecordView HideEmpty(RecordView recordView, bool value = true) #

Sets RecordView.HideEmpty: Whether null, empty and missing values are left out (default true).

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RecordView The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.RecordView { HideEmpty = value };    recordView.HideEmpty(value);
public static RecordView IndentWidth(RecordView recordView, int value) #

Sets RecordView.IndentWidth: Cells each nesting level indents (default 2).

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
value int required
The value.

Returns

RecordView The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ConsoleMonster.Widgets.RecordView { IndentWidth = value };    recordView.IndentWidth(value);
public static RecordView MaxLabelFraction(RecordView recordView, double value) #

Sets RecordView.MaxLabelFraction: The widest a label column may be, as a fraction of the width (default 0.4).

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
value double required
The value.

Returns

RecordView The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Widgets.RecordView { MaxLabelFraction = value };    recordView.MaxLabelFraction(value);
Presentation 2 overloads
public static RecordView Presentation(RecordView recordView, PresentationOptions value) #

Sets RecordView.Presentation: Culture, clock and time zone for raw values.

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
value ConsoleMonster.Presenters.PresentationOptions required
The value.

Returns

RecordView The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Widgets.RecordView { Presentation = value };    recordView.Presentation(value);
public static RecordView Presentation(RecordView recordView, Action<PresentationOptions> configure) #

Configures RecordView.Presentation in place (creating it when not set): Culture, clock and time zone for raw values.

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
configure System.Action<ConsoleMonster.Presenters.PresentationOptions> required
Configures the value.

Returns

RecordView The same instance.
public static RecordView Summary(RecordView recordView, string? value) #

Sets RecordView.Summary: A muted summary after the title (12 targets · 4 failing), or null.

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
value string? required
The value.

Returns

RecordView The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.RecordView { Summary = value };    recordView.Summary(value);
public static RecordView Title(RecordView recordView, string? value) #

Sets RecordView.Title: The title (markup) on the summary header line, or null.

Parameters

recordView ConsoleMonster.Widgets.RecordView required
The instance.
value string? required
The value.

Returns

RecordView The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.RecordView { Title = value };    recordView.Title(value);