Search Results for

    Class Rectangle

    A rectangle

    Inheritance
    object
    CyclicWriter
    GraphicalCyclicWriter
    Rectangle
    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.Shapes @ Terminaux.dll
    Syntax
    public class Rectangle : GraphicalCyclicWriter


    Constructors

    Rectangle(int, int, int, int, bool, Color?)

    Makes a new rectangle

    Declaration
    public Rectangle(int width, int height, int left, int top, bool filled = false, Color? shapeColor = null)
    Parameters
    Name Type Description
    width int

    Rectangle width

    height int

    Rectangle height

    left int

    Zero-based left position of the terminal to write this rectangle to

    top int

    Zero-based top position of the terminal to write this rectangle to

    filled bool

    Whether to print this filled rectangle or just the outline

    shapeColor Color

    Shape color. Null equals the current foreground color.



    Properties

    Filled

    Whether to print this filled rectangle or just the outline

    Property Value
    bool
    Declaration
    public bool Filled { get; }

    ShapeColor

    Shape color

    Property Value
    Color
    Declaration
    public Color ShapeColor { get; }


    Methods

    Render()

    Renders a rectangle

    Returns
    string

    A rendered rectangle using a string that you can print to the terminal using WriteRaw(string, params object[])

    Declaration
    public override string Render()
    Overrides
    CyclicWriter.Render()
    Show / Hide Table of Contents

    Table of contents



      About

      Copyright © 2014-2026 Aptivi

      Find us

    •  
    •  
    •  
    •  
    •  
    •  
    • Social media

    •  
    •  
    •  
    •