TableBorder

Represents a border.

Represents a border.

Properties

Ascii : TableBorder

Gets an ASCII border.

Ascii2 : TableBorder

Gets an ASCII border.

AsciiDoubleHead : TableBorder

Gets an ASCII border with a double header border.

Double : TableBorder

Gets a double border.

DoubleEdge : TableBorder

Gets a border with a double edge.

Heavy : TableBorder

Gets a heavy border.

HeavyEdge : TableBorder

Gets a border with a heavy edge.

HeavyHead : TableBorder

Gets a border with a heavy header.

Horizontal : TableBorder

Gets a horizontal border.

Markdown : TableBorder

Gets a markdown border.

Minimal : TableBorder

Gets a minimal border.

MinimalDoubleHead : TableBorder

Gets a minimal border with a double header border.

MinimalHeavyHead : TableBorder

Gets a minimal border with a heavy head.

Minimalist : TableBorder

Gets a minimalist border.

None : TableBorder

Gets an invisible border.

Rounded : TableBorder

Gets a rounded border.

SafeBorder : TableBorder

Gets the safe border for this border or null if none exist.

Simple : TableBorder

Gets a simple border.

SimpleHeavy : TableBorder

Gets a simple border with heavy lines.

Square : TableBorder

Gets a square border.

SupportsRowSeparator : bool

Gets a value indicating whether the border supports row separators or not.

UsePadding : bool

Gets a value indicating whether or not the border uses cell padding.

Visible : bool

Gets a value indicating whether or not the border is visible.

Methods

public string GetColumnRow(TablePart part, IReadOnlyList<int> widths, IReadOnlyList<IColumn> columns)

Gets a whole column row for the specific column row part.

Parameters:

part (TablePart)
The column row part.
widths (IReadOnlyList<int>)
The column widths.
columns (IReadOnlyList<IColumn>)
The columns.

Returns:

A string representing the column row.

public string GetPart(TableBorderPart part)

Gets the string representation of a specified table border part.

Parameters:

part (TableBorderPart)
The part to get the character representation for.

Returns:

A character representation of the specified border part.

Extension Methods

TableBorder GetSafeBorder(this TableBorder border, bool safe)

Gets the safe border for a border.

Returns:

The safe border if one exist, otherwise the original border.