Skip to content
ConsoleMonster
Class

WatchViewFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of WatchView, 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
  • WatchViewFluent

Methods

public static WatchView Differences(WatchView watchView, bool value = true) #

Sets WatchView.Differences: Whether values that changed since the previous run are highlighted (bold on a soft surface; a marker without colour).

Parameters

watchView ConsoleMonster.Widgets.WatchView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

WatchView The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ConsoleMonster.Widgets.WatchView { Differences = value };    watchView.Differences(value);
public static WatchView PollInterval(WatchView watchView, TimeSpan value) #

Sets WatchView.PollInterval: The time between runs, shown in the heading.

Parameters

watchView ConsoleMonster.Widgets.WatchView required
The instance.
value System.TimeSpan required
The value.

Returns

WatchView The same instance.

Examples

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

Sets WatchView.Title: What is being watched, shown in the heading (markup), or null.

Parameters

watchView ConsoleMonster.Widgets.WatchView required
The instance.
value string? required
The value.

Returns

WatchView The same instance.

Examples

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