Skip to content
ConsoleMonster
Class

GroupedColumn<T>

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
sealed

A column of GroupedRows<T>.

Inheritance

  • object
  • GroupedColumn<T>

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Type Parameters

T
The row type.

Constructors

public GroupedColumn<T>(string header, Func<T?, RenderContext, string> cell) #

Creates a column.

Parameters

header string required
The literal header, sentence case.
cell System.Func<T?, ConsoleMonster.Canvas.RenderContext, string> required
Builds a cell's markup; escape literal text with Markup.Escape.

Properties

public string Header { get; } #

The literal header.

public Func<T?, RenderContext, string> Cell { get; } #

The cell builder.

public bool AlignRight { get; set; } #

Right-aligns the header and cells (numbers, ages).

public int? Width { get; set; } #

A fixed width, for bars and axes; null sizes to the content.

public int? MaxWidth { get; set; } #

The widest the column may become before cells truncate.

public string? Axis { get; set; } #

Literal axis labels for a bar column, printed on the header line in place of GroupedColumn<T>.Header; say what the bars measure in the section facts. A table with an axis has no header rule, so its rows start right under the labels.