Table class
Represents a console table for formatted output with optional grid and padding.
public class Table
Public Members
name | description |
---|---|
Table() | Initializes a new instance of the Table class with default padding. |
Table(…) | Initializes a new instance of the Table class with the specified padding. |
HeaderSet { get; set; } | Gets or sets a value indicating whether the table header has been set. |
Padding { get; } | Gets the padding configuration for the table cells. |
AddRow(…) | Adds a row to the table with the specified cell values. Handles multiline cell values by splitting them into multiple rows. |
Render() | Renders the table as a formatted string with grid lines. |
RenderWithoutGrid() | Renders the table as a formatted string without grid lines. |
SetHeader(…) | Sets the header row for the table using the specified header values. |
override ToString() | Returns a string that represents the current table. |
const BOTTOM_JOINT | Represents the bottom joint character for the table grid. |
const BOTTOM_LEFT_JOINT | Represents the bottom-left joint character for the table grid. |
const BOTTOM_RIGHT_JOINT | Represents the bottom-right joint character for the table grid. |
const HORIZONTAL_LINE | Represents the horizontal line character for the table grid. |
const LEFT_JOINT | Represents the left joint character for the table grid. |
const MIDDLE_JOINT | Represents the middle joint character for the table grid. |
const RIGHT_JOINT | Represents the right joint character for the table grid. |
const TOP_JOINT | Represents the top joint character for the table grid. |
const TOP_LEFT_JOINT | Represents the top-left joint character for the table grid. |
const TOP_RIGHT_JOINT | Represents the top-right joint character for the table grid. |
const VERTICAL_LINE | Represents the vertical line character for the table grid. |
See Also
- namespace Kestrun.Logging.Utils.Console