Class AlignedText
Aligned text renderable
Inheritance
Inherited Members
Namespace
Syntax
public class AlignedText : GraphicalCyclicWriter
Constructors
AlignedText(Mark?, params object[])
Makes a new instance of the aligned text renderer
Declaration
public AlignedText(Mark? text = null, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| text | Mark | Text to use |
| vars | object[] | Variables to format the text with |
Properties
BackgroundColor
Background color of the text
Property Value
Color
Declaration
public Color BackgroundColor { get; set; }
Decoration
Decorations to add an appetizing prefix and suffix to the text
ForegroundColor
Foreground color of the text
Property Value
Color
Declaration
public Color ForegroundColor { get; set; }
OneLine
Whether to print all lines or only one line
Property Value
bool
Declaration
public bool OneLine { get; set; }
Rainbow
Whether to write text with rainbow effects or not
Property Value
bool
Declaration
public bool Rainbow { get; set; }
RainbowBg
Whether to write text with rainbow effects in the background or in the foreground
Property Value
bool
Declaration
public bool RainbowBg { get; set; }
Settings
Text settings to use
Text
Text to render
Property Value
string
Declaration
public string Text { get; set; }
UseColors
Whether to use colors or not
Property Value
bool
Declaration
public bool UseColors { get; set; }
Methods
Render()
Renders an aligned text
Returns
string
Rendered text that will be used by the renderer
Declaration
public override string Render()