TableColumn

Represents a table column.

Represents a table column.

Constructors

public TableColumn(string header)

Initializes a new instance of the TableColumn class.

Parameters:

header (string)
The table column header.
public TableColumn(IRenderable header)

Initializes a new instance of the TableColumn class.

Parameters:

header (IRenderable)
The IRenderable instance to use as the table column header.

Properties

Alignment : Justify?

Gets or sets the alignment of the column.

Footer : IRenderable

Gets or sets the column footer.

Header : IRenderable

Gets or sets the column header.

NoWrap : bool

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.

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.