Skip to content
ConsoleMonster
Class

ChartViewFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of ChartView, 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
  • ChartViewFluent

Methods

public static ChartView Binding(ChartView chartView, KeyBinding item) #

Adds an item to InputControl.Bindings: Keys that apply while this control has focus. They reach the control before its own keys (so Enter can open the selected row) and feed the app footer.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
item ConsoleMonster.Interactive.KeyBinding required
The item.

Returns

ChartView The same instance.
public static ChartView Bindings(ChartView chartView, IEnumerable<KeyBinding> items) #

Adds items to InputControl.Bindings: Keys that apply while this control has focus. They reach the control before its own keys (so Enter can open the selected row) and feed the app footer.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding> required
The items, in order.

Returns

ChartView The same instance.
public static ChartView Disabled(ChartView chartView, bool value = true) #

Sets InputControl.Disabled: Whether this control is excluded from input and focus traversal.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.Disabled = value;      chartView.Disabled(value);
public static ChartView Height(ChartView chartView, int value) #

Sets ChartView.Height: Rows for the readout and the plot, legend included (default 10).

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value int required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.Height = value;        chartView.Height(value);
public static ChartView Label(ChartView chartView, string? value) #

Sets InputControl.Label: The visible label, or null to use the name.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value string? required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.Label = value;         chartView.Label(value);
public static ChartView LinkKey(ChartView chartView, string? value) #

Sets ChartView.LinkKey: The app-state key shared with linked controls such as a DataGrid (see ILinkedSelection): the point under the crosshair.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value string? required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.LinkKey = value;       chartView.LinkKey(value);
public static ChartView Pan(ChartView chartView, double value) #

Sets ChartView.Pan: Where the zoomed window sits: 0 at the start of the X range, 1 at its end.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value double required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.Pan = value;           chartView.Pan(value);
public static ChartView PointLabel(ChartView chartView, string item) #

Adds an item to ChartView.PointLabels: Labels for the points along X (a time, a build), read out with their values; missing labels show the point number.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
item string required
The item.

Returns

ChartView The same instance.
public static ChartView PointLabels(ChartView chartView, IEnumerable<string> items) #

Adds items to ChartView.PointLabels: Labels for the points along X (a time, a build), read out with their values; missing labels show the point number.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

ChartView The same instance.
public static ChartView SelectedIndex(ChartView chartView, int value) #

Sets ChartView.SelectedIndex: The index of the point under the crosshair, or -1 before there is data. Assignments notify like a click.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value int required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property       // C# fluent
chartView.SelectedIndex = value;    chartView.SelectedIndex(value);
public static ChartView TabIndex(ChartView chartView, int value) #

Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value int required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.TabIndex = value;      chartView.TabIndex(value);
public static ChartView ValidationMessage(ChartView chartView, string? value) #

Sets InputControl.ValidationMessage: The current validation message below the control, or null.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value string? required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property           // C# fluent
chartView.ValidationMessage = value;    chartView.ValidationMessage(value);
public static ChartView ZoomLevel(ChartView chartView, int value) #

Sets ChartView.ZoomLevel: The zoom level: 0 shows the whole X range and each level shows a narrower window.

Parameters

chartView ConsoleMonster.Interactive.ChartView required
The instance.
value int required
The value.

Returns

ChartView The same instance.

Examples

// C# initializer or property    // C# fluent
chartView.ZoomLevel = value;     chartView.ZoomLevel(value);