Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void AddCell(ConsoleColoredString, int, int, bool, HorizontalTextAlignment?, ConsoleColor?)

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

ConsoleColoredStringcontent The content to place.
intcolSpan The number of columns to span.
introwSpan The number of rows to span.
boolnoWrap 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.