Skip to content
ConsoleMonster
Class

RuleFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of Rule, 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
  • RuleFluent

Methods

public static Rule Alignment(Rule rule, HorizontalAlignment value) #

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

Parameters

rule ConsoleMonster.Widgets.Rule required
The instance.
value ConsoleMonster.Layout.HorizontalAlignment required
The value.

Returns

Rule The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::ConsoleMonster.Widgets.Rule { Alignment = value };    Ui.Rule().Alignment(value);
public static Rule LineRole(Rule rule, ThemeToken value) #

Sets Rule.LineRole: The line's theme role (default ThemeToken.Border).

Parameters

rule ConsoleMonster.Widgets.Rule required
The instance.
value ConsoleMonster.Styling.ThemeToken required
The value.

Returns

Rule The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ConsoleMonster.Widgets.Rule { LineRole = value };    Ui.Rule().LineRole(value);
public static Rule LineStyle(Rule rule, BoxStyle? value) #

Sets Rule.LineStyle: The line's box style, or null to use the glyph profile's ordinary rule line.

Parameters

rule ConsoleMonster.Widgets.Rule required
The instance.
value ConsoleMonster.Glyphs.BoxStyle? required
The value.

Returns

Rule The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::ConsoleMonster.Widgets.Rule { LineStyle = value };    Ui.Rule().LineStyle(value);
public static Rule Title(Rule rule, string? value) #

Sets Rule.Title: The title (markup).

Parameters

rule ConsoleMonster.Widgets.Rule required
The instance.
value string? required
The value.

Returns

Rule The same instance.

Examples

// C# initializer or property                                 // C# fluent
new global::ConsoleMonster.Widgets.Rule { Title = value };    Ui.Rule().Title(value);