Table of Contents

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 BordersType

The 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

char

BottomLeft

Gets the bottom-left corner of the border. (└)

public char BottomLeft { get; }

Property Value

char

BottomRight

Gets the bottom-right corner of the border. (┘)

public char BottomRight { get; }

Property Value

char

Cross

Gets the cross of the border. (┼)

public char Cross { get; }

Property Value

char

Horizontal

Gets the horizontal line of the border. (─)

public char Horizontal { get; }

Property Value

char

Left

Gets the left line of the border. (├)

public char Left { get; }

Property Value

char

Right

Gets the right line of the border. (┤)

public char Right { get; }

Property Value

char

Top

Gets the top line of the border. (┬)

public char Top { get; }

Property Value

char

TopLeft

Gets the top-left corner of the border. (┌)

public char TopLeft { get; }

Property Value

char

TopRight

Gets the top-right corner of the border. (┐)

public char TopRight { get; }

Property Value

char

Type

Gets the type of border to use for the element.

public BordersType Type { get; }

Property Value

BordersType

Vertical

Gets the vertical line of the border. (│)

public char Vertical { get; }

Property Value

char

Methods

GetBorderChar(int)

Gets the border character at the specified index.

public char GetBorderChar(int index)

Parameters

index int

The 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 BordersType

The new border type to use.

Remarks

For more information, consider visiting the documentation available here.