API Reference
SparklineFluent
The fluent methods of Sparkline, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- SparklineFluent
Methods
public static Sparkline WithCapacity(Sparkline sparkline, Int32 value) #SparklineSets Sparkline.Capacity: How many values are kept (default 1024).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static Sparkline WithHeight(Sparkline sparkline, Int32 value) #SparklineSets Sparkline.Height: Rows (default 1).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static Sparkline WithLabel(Sparkline sparkline, String? value) #SparklineSets Sparkline.Label: A label shown on the left (markup), or null.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static Sparkline WithMax(Sparkline sparkline, Double? value) #SparklineSets Sparkline.Max: A fixed maximum, or null to scale to the visible values.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value System.Double?
- The value.
Returns
The same instance.
public static Sparkline WithShowLatest(Sparkline sparkline, Boolean value = true) #SparklineSets Sparkline.ShowLatest: Whether the latest value is shown on the right (default true).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static Sparkline WithToken(Sparkline sparkline, ThemeToken value) #SparklineSets Sparkline.Token: The colour token (default ThemeToken.Accent).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Returns
The same instance.
public static Sparkline WithUnit(Sparkline sparkline, String? value) #SparklineSets Sparkline.Unit: A unit appended to the latest value.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value System.String?
- The value.
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?