Class CliTableTitle
Title content and style used by CliTable when materializing a table.
public sealed class CliTableTitle
- Inheritance
-
CliTableTitle
- Inherited Members
Constructors
CliTableTitle(object?, CliCellStyle)
Creates a title from arbitrary content and an explicit title style.
public CliTableTitle(object? content, CliCellStyle style)
Parameters
contentobjectstyleCliCellStyle
CliTableTitle(string, CliTextAlignment, CliCharStyle?)
Creates a preformatted, markup-aware title with an optional alignment and character style.
public CliTableTitle(string content, CliTextAlignment alignment = CliTextAlignment.Center, CliCharStyle? charStyle = null)
Parameters
contentstringalignmentCliTextAlignmentcharStyleCliCharStyle?
Properties
Content
Title content rendered above the table body.
public object? Content { get; init; }
Property Value
Style
Style used to format, align, and render the title cell.
public CliCellStyle Style { get; init; }