Search Results for

    Show / Hide Table of Contents

    Class Ruler

    Ruler renderable

    Inheritance
    object
    CyclicWriter
    SimpleCyclicWriter
    Ruler
    Namespace: Terminaux.Writer.CyclicWriters.Simple
    Assembly: Terminaux.dll
    Syntax
    public class Ruler : SimpleCyclicWriter

    Constructors

    | Edit this page View Source

    Ruler()

    Makes a new instance of the ruler renderer

    Declaration
    public Ruler()

    Properties

    | Edit this page View Source

    Alignment

    Alignment of text

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

    BackgroundColor

    Background color

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

    ForegroundColor

    Foreground color

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

    Height

    Height of the ruler

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

    IntersectionIndicator

    Whether this ruler has intersection indicators

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

    Settings

    Ruler style settings

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

    Text

    Text to render (only for horizontal rulers)

    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
    | Edit this page View Source

    Vertical

    Whether this ruler is a vertical ruler or not

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

    Width

    Width of the ruler

    Declaration
    public int Width { get; set; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Render()

    Renders a ruler

    Declaration
    public override string Render()
    Returns
    Type Description
    string

    Rendered ruler 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