Declaration
public void SetCell(
int col,
int row,
string content,
int colSpan = 1,
int rowSpan = 1,
bool noWrap = false,
HorizontalTextAlignment? alignment = null,
ConsoleColor? background = null
)
Summary
Places the specified content into the cell at the specified co-ordinates.
Parameters
int | col |
Column where to place the content. |
int | row |
Row where to place the content. |
string | 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. |