Class
RuleFluent
ConsoleMonster.Widgets
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
- The instance.
- value ConsoleMonster.Layout.HorizontalAlignment
- The value.
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
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
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
- The instance.
- value ConsoleMonster.Glyphs.BoxStyle?
- The value.
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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Rule { Title = value }; Ui.Rule().Title(value);