FigletText Class
Represents text rendered with a FIGlet font.
public sealed class FigletText : Renderable, IRenderable, IAlignable
- Namespace
- Spectre
.Console - Interfaces
- 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
Methods
-
protected virtual Measurement Measure
(RenderContext, int) - Measures the renderable object.
-
protected override IEnumerable<Segment> Render
(RenderContext, int) - Renders the object.
Extension Methods
-
T Alignment
<FigletText> (Justify?) -
Sets the alignment for an
IAlignable
object. -
T Centered
<FigletText> () -
Sets the
IAlignable
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 LeftAligned
<FigletText> () -
Sets the
IAlignable
object to be left aligned. -
T RightAligned
<FigletText> () -
Sets the
IAlignable
object to be right aligned.