Skip to content
ConsoleMonster

API Reference

Class

RuleFluent

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

The fluent methods of Rule, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • Object
  • RuleFluent

Methods

public static Rule WithAlignment(Rule rule, HorizontalAlignment value) #
Returns: Rule

Sets Rule.Alignment: Title alignment (default left).

Parameters

rule ConsoleMonster.Widgets.Rule requiredposition: 0
The instance.
value ConsoleMonster.Layout.HorizontalAlignment requiredposition: 1
The value.

Returns

The same instance.

public static Rule WithLineToken(Rule rule, ThemeToken value) #
Returns: Rule

Sets Rule.LineToken: The line's theme token (default ThemeToken.Border).

Parameters

rule ConsoleMonster.Widgets.Rule requiredposition: 0
The instance.
value ConsoleMonster.Styling.ThemeToken requiredposition: 1
The value.

Returns

The same instance.

public static Rule WithTitle(Rule rule, String? value) #
Returns: Rule

Sets Rule.Title: The title (markup).

Parameters

rule ConsoleMonster.Widgets.Rule requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.