Class
GroupedColumn<T>
ConsoleMonster.Frames
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
- Property GroupedRows<T>.Columns
Type Parameters
- T
- The row type.
Constructors
public GroupedColumn<T>(string header, Func<T?, RenderContext, string> cell) #Creates a column.
Parameters
- header string
- The literal header, sentence case.
- cell System.Func<T?, ConsoleMonster.Canvas.RenderContext, string>
- Builds a cell's markup; escape literal text with Markup.Escape.
Inherited Methods
Properties
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.