Class Borders
- Namespace
- ConsoleAppVisuals.Models
- Assembly
- ConsoleAppVisuals.dll
The Borders class defines the border characters to use for embed elements.
public class Borders
- Inheritance
-
Borders
- Inherited Members
Remarks
For more information, consider visiting the documentation available here.
Constructors
Borders(BordersType)
The Borders class defines the border characters to use for embed elements.
public Borders(BordersType type = BordersType.SingleStraight)
Parameters
type
BordersTypeThe type of border to use for the element.
Remarks
For more information, consider visiting the documentation available here.
Properties
Bottom
Gets the bottom line of the border. (┴)
public char Bottom { get; }
Property Value
BottomLeft
Gets the bottom-left corner of the border. (└)
public char BottomLeft { get; }
Property Value
BottomRight
Gets the bottom-right corner of the border. (┘)
public char BottomRight { get; }
Property Value
Cross
Gets the cross of the border. (┼)
public char Cross { get; }
Property Value
Horizontal
Gets the horizontal line of the border. (─)
public char Horizontal { get; }
Property Value
Left
Gets the left line of the border. (├)
public char Left { get; }
Property Value
Right
Gets the right line of the border. (┤)
public char Right { get; }
Property Value
Top
Gets the top line of the border. (┬)
public char Top { get; }
Property Value
TopLeft
Gets the top-left corner of the border. (┌)
public char TopLeft { get; }
Property Value
TopRight
Gets the top-right corner of the border. (┐)
public char TopRight { get; }
Property Value
Type
Gets the type of border to use for the element.
public BordersType Type { get; }
Property Value
Vertical
Gets the vertical line of the border. (│)
public char Vertical { get; }
Property Value
Methods
GetBorderChar(int)
Gets the border character at the specified index.
public char GetBorderChar(int index)
Parameters
index
intThe index of the border character to get.
Returns
- char
The border character at the specified index.
Remarks
For more information, consider visiting the documentation available here.
Exceptions
- ArgumentException
Thrown when the border type is invalid.
- ArgumentOutOfRangeException
Thrown when the index is out of range.
UpdateBordersType(BordersType)
Updates the border type of the element.
public void UpdateBordersType(BordersType newType)
Parameters
newType
BordersTypeThe new border type to use.
Remarks
For more information, consider visiting the documentation available here.