Class FigletText
Figlet text renderable
Inheritance
Namespace
Syntax
public class FigletText : SimpleCyclicWriter
Constructors
FigletText(FigletFont, Mark?, params object[])
Makes a new instance of the aligned figlet text renderer
Declaration
public FigletText(FigletFont figletFont, Mark? text = null, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| figletFont | FigletFont | Figlet font to render with |
| 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; }
Font
Figlet font to render the text with
Property Value
FigletFont
Declaration
public FigletFont Font { get; set; }
ForegroundColor
Foreground color of the text
Property Value
Color
Declaration
public Color ForegroundColor { get; set; }
Text
Top position
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; }
Width
Width of the aligned figlet text
Property Value
int
Declaration
public int Width { get; set; }
Methods
Render()
Renders an aligned figlet text
Returns
string
Rendered text that will be used by the renderer
Declaration
public override string Render()