Skip to content
ConsoleMonster
Class

RichTextFluent

ConsoleMonster.Text

Namespace
ConsoleMonster.Text
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of RichText, 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
  • RichTextFluent

Methods

public static RichText Alignment(RichText richText, HorizontalAlignment value) #

Sets RichText.Alignment: Alignment when written as a widget (default left).

Parameters

richText ConsoleMonster.Text.RichText required
The instance.
value ConsoleMonster.Layout.HorizontalAlignment required
The value.

Returns

RichText The same instance.

Examples

// C# initializer or property    // C# fluent
richText.Alignment = value;      richText.Alignment(value);
public static RichText Overflow(RichText richText, TextOverflow value) #

Sets RichText.Overflow: How the text fits when written as a widget (default wrap, keeping styles across lines).

Parameters

richText ConsoleMonster.Text.RichText required
The instance.
value ConsoleMonster.Widgets.TextOverflow required
The value.

Returns

RichText The same instance.

Examples

// C# initializer or property    // C# fluent
richText.Overflow = value;       richText.Overflow(value);