Class
RichTextFluent
ConsoleMonster.Text
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
- The instance.
- value ConsoleMonster.Layout.HorizontalAlignment
- The value.
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
- The instance.
- value ConsoleMonster.Widgets.TextOverflow
- The value.
Examples
// C# initializer or property // C# fluent
richText.Overflow = value; richText.Overflow(value);