Class TuiConnectedLinesScreen
- Namespace
- AshConsoleGraphics
- Assembly
- AshConsoleGraphics.dll
Screen with elements that connect like lines
public class TuiConnectedLinesScreen : TuiScreen, IEnumerable<TuiElement>, IEnumerable
- Inheritance
-
TuiConnectedLinesScreen
- Implements
- Inherited Members
Constructors
TuiConnectedLinesScreen(int, int, Placement, int, int, CharFormat?, params ILineElement[])
Initializes a new line screen with default chars
public TuiConnectedLinesScreen(int xs, int ys, Placement p, int x, int y, CharFormat? f, params ILineElement[] i)
Parameters
xsintThe x size
ysintThe y size
pPlacementxintyintfCharFormatThe default format
iILineElement[]The lined elements
TuiConnectedLinesScreen(int, int, CharFormat?, params ILineElement[])
Initializes a new line screen with top left position and default chars
public TuiConnectedLinesScreen(int xs, int ys, CharFormat? f, params ILineElement[] i)
Parameters
xsintThe x size
ysintThe y size
fCharFormatThe default format
iILineElement[]The lined elements
TuiConnectedLinesScreen(string, int, int, Placement, int, int, CharFormat?, params ILineElement[])
Initializes a new line screen
public TuiConnectedLinesScreen(string chars, int xs, int ys, Placement p, int x, int y, CharFormat? f, params ILineElement[] i)
Parameters
charsstringThe line charachters
xsintThe x size
ysintThe y size
pPlacementxintyintfCharFormatThe default format
iILineElement[]The lined elements
Exceptions
- ArgumentException
Thrown when chars is null or it is not 16 chars long
TuiConnectedLinesScreen(string, int, int, CharFormat?, params ILineElement[])
Initializes a new line screen with top left position
public TuiConnectedLinesScreen(string chars, int xs, int ys, CharFormat? f, params ILineElement[] i)
Parameters
charsstringThe line charachters
xsintThe x size
ysintThe y size
fCharFormatThe default format
iILineElement[]The lined elements
Exceptions
- ArgumentException
Thrown when chars is null or it is not 16 chars long
Properties
Chars
The 16 connected line charachters. An example would be "·───│┌┐┬│└┘┴│├┤┼"
public char[] Chars { get; set; }
Property Value
- char[]
Methods
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()