Represents a table column.
Constructors
public TableColumn(string header)
Initializes a new instance of the TableColumn class.
Parameters:
header (string)public TableColumn(IRenderable header)
Initializes a new instance of the TableColumn class.
Parameters:
header (IRenderable)IRenderable instance to use as the table column header.Properties
Alignment
: Justify?Gets or sets the alignment of the column.
Footer
: IRenderableGets or sets the column footer.
Header
: IRenderableGets or sets the column header.
NoWrap
: boolGets or sets a value indicating whether wrapping of text within the column should be prevented.
Padding
: Padding?Gets or sets the padding of the column. Vertical padding (top and bottom) is ignored.
Width
: int?Gets or sets the width of the column. If null, the column will adapt to its contents.
Extension Methods
TableColumn Footer(this TableColumn column, string footer)Sets the table column footer.
Returns:
The same instance so that multiple calls can be chained.
TableColumn Footer(this TableColumn column, IRenderable footer)Sets the table column footer.
Returns:
The same instance so that multiple calls can be chained.
TableColumn Header(this TableColumn column, string header)Sets the table column header.
Returns:
The same instance so that multiple calls can be chained.
TableColumn Header(this TableColumn column, IRenderable header)Sets the table column header.
Returns:
The same instance so that multiple calls can be chained.