Skip to content
ConsoleMonster
Class

FactFlowFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of FactFlow, 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
  • FactFlowFluent

Methods

public static FactFlow AddPart(FactFlow factFlow, string item) #

Adds an item to FactFlow.Parts: Markup facts in display order.

Parameters

factFlow ConsoleMonster.Widgets.FactFlow required
The instance.
item string required
The item.

Returns

FactFlow The same instance.
AddParts 2 overloads
public static FactFlow AddParts(FactFlow factFlow, params string[] items) #

Adds items to FactFlow.Parts: Markup facts in display order.

Parameters

factFlow ConsoleMonster.Widgets.FactFlow required
The instance.
items string[] required
The items, in order.

Returns

FactFlow The same instance.
public static FactFlow AddParts(FactFlow factFlow, IEnumerable<string> items) #

Adds items to FactFlow.Parts: Markup facts in display order.

Parameters

factFlow ConsoleMonster.Widgets.FactFlow required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

FactFlow The same instance.
public static FactFlow Role(FactFlow factFlow, ThemeToken? value) #

Sets FactFlow.Role: An optional role beneath each fact.

Parameters

factFlow ConsoleMonster.Widgets.FactFlow required
The instance.
value ConsoleMonster.Styling.ThemeToken? required
The value.

Returns

FactFlow The same instance.

Examples

// C# initializer or property    // C# fluent
factFlow.Role = value;           factFlow.Role(value);
public static FactFlow Separator(FactFlow factFlow, string? value) #

Sets FactFlow.Separator: Optional literal separator; the default is the tier's middle dot.

Parameters

factFlow ConsoleMonster.Widgets.FactFlow required
The instance.
value string? required
The value.

Returns

FactFlow The same instance.

Examples

// C# initializer or property    // C# fluent
factFlow.Separator = value;      factFlow.Separator(value);