Skip to content
ChartForgeX
Class

TerminalTable

ChartForgeX.Terminal

Namespace
ChartForgeX.Terminal
Assembly
ChartForgeX.Stories
Modifiers
sealed
Attributes
Fluent

Models a compact monospace table within a terminal story.

Inheritance

  • object
  • TerminalTable

Usage

Explore 9 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.

Accepted by parameters 3

Constructors

public TerminalTable() #

Methods

public TerminalTable AddRow(params object[] values) #

Adds one table row.

Parameters

values object[] required
public TerminalTable AlignColumn(int index, TerminalColumnAlignment alignment) #

Sets one column alignment.

Parameters

index int required
alignment ChartForgeX.Terminal.TerminalColumnAlignment required
public static TerminalTable Create() #

Creates an empty terminal table.

Properties

public IReadOnlyList<string> Columns { get; } #

Gets the column headings.

public IReadOnlyList<TerminalColumnAlignment> Alignments { get; } #

Gets column alignments.

public IReadOnlyList<IReadOnlyList<string>> Rows { get; } #

Gets table rows.

Extension Methods

public static TerminalTable Columns(TerminalTable terminalTable, params string[] columns) #

Sets table columns.

Parameters

terminalTable ChartForgeX.Terminal.TerminalTable required
columns string[] required