Search Results for

    Class Trapezoid

    A trapezoid

    Inheritance
    object
    CyclicWriter
    GraphicalCyclicWriter
    Trapezoid
    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 Trapezoid : GraphicalCyclicWriter


    Constructors

    Trapezoid(int, int, int, int, int, bool, Color?)

    Makes a new trapezoid

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

    Trapezoid top width

    bottomWidth int

    Trapezoid bottom width

    height int

    Trapezoid height

    left int

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

    top int

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

    filled bool

    Whether to print this filled trapezoid or just the outline

    shapeColor Color

    Shape color. Null equals the current foreground color.



    Properties

    BottomWidth

    Trapezoid bottom width

    Property Value
    int
    Declaration
    public int BottomWidth { get; }

    Filled

    Whether to print this filled trapezoid or just the outline

    Property Value
    bool
    Declaration
    public bool Filled { get; }

    ShapeColor

    Shape color

    Property Value
    Color
    Declaration
    public Color ShapeColor { get; }

    TopWidth

    Trapezoid top width

    Property Value
    int
    Declaration
    public int TopWidth { get; }


    Methods

    Render()

    Renders a trapezoid

    Returns
    string

    A rendered trapezoid 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

    •  
    •  
    •  
    •