Class Trapezoid
A trapezoid
Inherited Members
Namespace: Terminaux.Writer.CyclicWriters.Graphical.Shapes
Assembly: Terminaux.dll
Syntax
public class Trapezoid : GraphicalCyclicWriter
Constructors
| Edit this page View SourceTrapezoid(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
| Type | Name | Description |
|---|---|---|
| int | topWidth | Trapezoid top width |
| int | bottomWidth | Trapezoid bottom width |
| int | height | Trapezoid height |
| int | left | Zero-based left position of the terminal to write this trapezoid to |
| int | top | Zero-based top position of the terminal to write this trapezoid to |
| bool | filled | Whether to print this filled trapezoid or just the outline |
| Color | shapeColor | Shape color. Null equals the current foreground color. |
Properties
| Edit this page View SourceBottomWidth
Trapezoid bottom width
Declaration
public int BottomWidth { get; }
Property Value
| Type | Description |
|---|---|
| int |
Filled
Whether to print this filled trapezoid or just the outline
Declaration
public bool Filled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ShapeColor
Shape color
Declaration
public Color ShapeColor { get; }
Property Value
| Type | Description |
|---|---|
| Color |
TopWidth
Trapezoid top width
Declaration
public int TopWidth { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceRender()
Renders a trapezoid
Declaration
public override string Render()
Returns
| Type | Description |
|---|---|
| string | A rendered trapezoid using a string that you can print to the terminal using WriteRaw(string, params object[]) |