TableColumn Class

Represents a table column.
public sealed class TableColumn : IColumn, IAlignable, IPaddable

Constructors

TableColumn(IRenderable)
Initializes a new instance of the TableColumn class.
TableColumn(string)
Initializes a new instance of the TableColumn class.

Properties

Justify? Alignment
Gets or sets the alignment of the column.
IRenderable Footer
Gets or sets the column footer.
IRenderable Header
Gets or sets the column header.
bool NoWrap
Gets 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.
int? Width
Gets or sets the width of the column. If null, the column will adapt to its contents.

Extension Methods

T Alignment<TableColumn>(Justify?)
Sets the alignment for an IAlignable object.
T Centered<TableColumn>()
Sets the IAlignable object to be centered.
TableColumn Footer(IRenderable)
Sets the table column footer.
TableColumn Footer(string)
Sets the table column footer.
TableColumn Header(IRenderable)
Sets the table column header.
TableColumn Header(string)
Sets the table column header.
T LeftAligned<TableColumn>()
Sets the IAlignable object to be left aligned.
T NoWrap<TableColumn>()
Prevents a column from wrapping.
T PadBottom<TableColumn>(int)
Sets the bottom padding.
T Padding<TableColumn>(int, int, int, int)
Sets the left, top, right and bottom padding.
T Padding<TableColumn>(int, int)
Sets the horizontal and vertical padding.
T Padding<TableColumn>(Padding)
Sets the padding.
T PadLeft<TableColumn>(int)
Sets the left padding.
T PadRight<TableColumn>(int)
Sets the right padding.
T PadTop<TableColumn>(int)
Sets the top padding.
T RightAligned<TableColumn>()
Sets the IAlignable object to be right aligned.
T Width<TableColumn>(int?)
Sets the width of the column.