Search Results for

    Show / Hide Table of Contents

    Class AlignedText

    Aligned text renderable

    Inheritance
    object
    CyclicWriter
    GraphicalCyclicWriter
    AlignedText
    Inherited Members
    GraphicalCyclicWriter.Left
    GraphicalCyclicWriter.Top
    GraphicalCyclicWriter.Width
    GraphicalCyclicWriter.Height
    GraphicalCyclicWriter.Padding
    GraphicalCyclicWriter.Margins
    GraphicalCyclicWriter.SetMargins
    GraphicalCyclicWriter.HitboxStartPos
    GraphicalCyclicWriter.HitboxEndPos
    GraphicalCyclicWriter.GenerateHitbox(Func<PointerEventContext, object>)
    GraphicalCyclicWriter.GenerateHitbox(Action<PointerEventContext>)
    Namespace: Terminaux.Writer.CyclicWriters.Graphical
    Assembly: Terminaux.dll
    Syntax
    public class AlignedText : GraphicalCyclicWriter

    Constructors

    | Edit this page View Source

    AlignedText(Mark?, params object[])

    Makes a new instance of the aligned text renderer

    Declaration
    public AlignedText(Mark? text = null, params object[] vars)
    Parameters
    Type Name Description
    Mark text

    Text to use

    object[] vars

    Variables to format the text with

    Properties

    | Edit this page View Source

    BackgroundColor

    Background color of the text

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    Decoration

    Decorations to add an appetizing prefix and suffix to the text

    Declaration
    public Decoration? Decoration { get; set; }
    Property Value
    Type Description
    Decoration
    | Edit this page View Source

    ForegroundColor

    Foreground color of the text

    Declaration
    public Color ForegroundColor { get; set; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    OneLine

    Whether to print all lines or only one line

    Declaration
    public bool OneLine { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Rainbow

    Whether to write text with rainbow effects or not

    Declaration
    public bool Rainbow { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    RainbowBg

    Whether to write text with rainbow effects in the background or in the foreground

    Declaration
    public bool RainbowBg { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Settings

    Text settings to use

    Declaration
    public TextSettings Settings { get; set; }
    Property Value
    Type Description
    TextSettings
    | Edit this page View Source

    Text

    Text to render

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    UseColors

    Whether to use colors or not

    Declaration
    public bool UseColors { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Render()

    Renders an aligned text

    Declaration
    public override string Render()
    Returns
    Type Description
    string

    Rendered text that will be used by the renderer

    Overrides
    CyclicWriter.Render()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX