Table of Contents

Class CliTableElement

Namespace
ItTiger.TigerCli.Rendering
Assembly
ItTiger.TigerCli.dll
Describes a single table element (column in Vertical, row in Horizontal). Styling is expressed via CliCellStyle and resolved by the grid's style cascade (grid defaults → axis styles → section defaults → per-cell).
public class CliTableElement
Inheritance
CliTableElement
Inherited Members

Constructors

CliTableElement()

Creates an empty table element.
public CliTableElement()

CliTableElement(object?, CliCellStyle?, CliCellStyle?, CliCellStyle?)

Creates a table element with explicit header content and styles.
public CliTableElement(object? headerContent, CliCellStyle? headerStyle, CliCellStyle? dataStyle, CliCellStyle? dataAltStyle = null)

Parameters

headerContent object
The header caption content.
headerStyle CliCellStyle
The style applied to the header caption.
dataStyle CliCellStyle
The default style for data cells.
dataAltStyle CliCellStyle
Retained for source compatibility; this parameter does not currently affect rendering.

CliTableElement(string, CliCellStyle?, CliCellStyle?)

Creates a table element with a preformatted header caption and data-cell style.
public CliTableElement(string headerContent, CliCellStyle? dataStyle, CliCellStyle? dataAltStyle = null)

Parameters

headerContent string
The header caption.
dataStyle CliCellStyle
The default style for data cells.
dataAltStyle CliCellStyle
Retained for source compatibility; this parameter does not currently affect rendering.

Properties

When true, this element's data cells are marked as hyperlinks (a per-cell IsHyperlink is applied at ToGrid() time, so the flag never bleeds onto the header caption or frame cells). The render pipeline then derives each data cell's hyperlink target from its own full visible value. Header captions are never links.
public bool DataIsHyperlink { get; set; }

Property Value

bool

DataStyle

Element-axis defaults for data cells (width/min/max, wrapping, horizontal/vertical alignment, formatting mode, formatter, null display, char style). Layout properties are applied to the data band via axis styling; the char style (value ink, e.g. a Link underline) is applied per data cell at ToGrid() time so it never bleeds onto the header caption or frame cells crossing the axis. Not meant for per-cell overrides.
public CliCellStyle? DataStyle { get; set; }

Property Value

CliCellStyle

HeaderContent

Header caption content for this element (usually a string; may include TigerCli markup if the effective FormattingMode for the header band is Preformatted).
public object? HeaderContent { get; set; }

Property Value

object

HeaderStyle

Header-only overrides for the caption cell of this element (e.g., header alignment/char style). Typically uses Preformatted formatting mode for markup captions.
public CliCellStyle? HeaderStyle { get; set; }

Property Value

CliCellStyle