Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void SetCell(int, int, string, int, int, bool, HorizontalTextAlignment?, ConsoleColor?)

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

intcol Column where to place the content.
introw Row where to place the content.
stringcontent 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.