Class Square
A square
Inherited Members
Namespace: Terminaux.Writer.CyclicWriters.Graphical.Shapes
Assembly: Terminaux.dll
Syntax
public class Square : GraphicalCyclicWriter
Constructors
| Edit this page View SourceSquare(int, int, int, bool, Color?)
Makes a new square
Declaration
public Square(int height, int left, int top, bool filled = false, Color? shapeColor = null)
Parameters
Type | Name | Description |
---|---|---|
int | height | Square height |
int | left | Zero-based left position of the terminal to write this square to |
int | top | Zero-based top position of the terminal to write this square to |
bool | filled | Whether to print this filled square or just the outline |
Color | shapeColor | Shape color. Null equals the current foreground color. |
Properties
| Edit this page View SourceFilled
Whether to print this filled square 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 |
Methods
| Edit this page View SourceRender()
Renders a square
Declaration
public override string Render()
Returns
Type | Description |
---|---|
string | A rendered square using a string that you can print to the terminal using WriteRaw(string, params object[]) |