FigletText Class

Represents text rendered with a FIGlet font.
public sealed class FigletText : Renderable, IRenderable, IHasJustification
Namespace
Spectre.Console
Base Types

Constructors

FigletText(FigletFont, string)
Initializes a new instance of the FigletText class.
FigletText(string)
Initializes a new instance of the FigletText class.

Properties

Color? Color
Gets or sets the color of the text.
Justify? Justification
Gets or sets the justification.
bool Pad
Gets or sets a value indicating whether or not the right side should be padded.

Methods

protected virtual Measurement Measure(RenderOptions, int)
Measures the renderable object.
protected override IEnumerable<Segment> Render(RenderOptions, int)
Renders the object.

Extension Methods

T Centered<FigletText>()
Sets the IHasJustification object to be centered.
FigletText Color(Color?)
Sets the color of the FIGlet text.
IEnumerable<Segment> GetSegments(IAnsiConsole)
Gets the segments for a renderable using the specified console.
T Justify<FigletText>(Justify?)
Sets the justification for an IHasJustification object.
T LeftJustified<FigletText>()
Sets the IHasJustification object to be left justified.
T RightJustified<FigletText>()
Sets the IHasJustification object to be right justified.