Declaration
public void AddCell(
ConsoleColoredString content,
int colSpan = 1,
int rowSpan = 1,
bool noWrap = false,
HorizontalTextAlignment? alignment = null,
ConsoleColor? background = null
)
Summary
Places content at (
TextTable.CurCol,
TextTable.CurRow) and advances
TextTable.CurCol by
colSpan. See also
TextTable.FinishRow().
Parameters
ConsoleColoredString | content |
The content to place. |
int | colSpan |
The number of columns to span. |
int | rowSpan |
The number of rows to span. |
bool | noWrap |
If true, indicates that this cell should not be automatically word-wrapped except at explicit newlines in
content. The cell is word-wrapped only if doing so is necessary to fit all no-wrap cells
into the table's total width. If false, the cell is automatically word-wrapped to optimise the table's layout. |
HorizontalTextAlignment? | alignment |
How to align the contents within the cell, or null to use TextTable.DefaultAlignment. |
ConsoleColor? | background |
Specifies a background color for the whole cell, including its empty space. Characters with background colors
in the input string take precedence for those characters only. |