Class
ChartItemFluent
ConsoleMonster.Widgets
The fluent methods of ChartItem, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- ChartItemFluent
Methods
LabelText 2 overloads
public static ChartItem LabelText(ChartItem chartItem, RichText? value) #Sets ChartItem.LabelText: A multicolour label shown instead of ChartItem.Label (which stays the key), or null.
Parameters
- chartItem ConsoleMonster.Widgets.ChartItem
- The instance.
- value ConsoleMonster.Text.RichText?
- The value.
Examples
// C# initializer or property // C# fluent
chartItem.LabelText = value; chartItem.LabelText(value);public static ChartItem LabelText(ChartItem chartItem, Action<RichText> configure) #Configures ChartItem.LabelText in place: A multicolour label shown instead of ChartItem.Label (which stays the key), or null.
Parameters
- chartItem ConsoleMonster.Widgets.ChartItem
- The instance.
- configure System.Action<ConsoleMonster.Text.RichText>
- Configures the value.
public static ChartItem Role(ChartItem chartItem, ThemeToken? value) #Sets ChartItem.Role: The colour role.
Parameters
- chartItem ConsoleMonster.Widgets.ChartItem
- The instance.
- value ConsoleMonster.Styling.ThemeToken?
- The value.
Examples
// C# initializer or property // C# fluent
chartItem.Role = value; chartItem.Role(value);public static ChartItem Value(ChartItem chartItem, double value) #Sets ChartItem.Value: The value.
Parameters
- chartItem ConsoleMonster.Widgets.ChartItem
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
chartItem.Value = value; chartItem.Value(value);