Table of Contents

Class CliGridCell

Namespace
ItTiger.TigerCli.Primitives
Assembly
ItTiger.TigerCli.dll
A single grid cell definition, holding either scalar content or a hosted subgrid plus optional style and span information.
public sealed class CliGridCell
Inheritance
CliGridCell
Inherited Members

Constructors

CliGridCell(CliGrid, CliCellStyle?, int, int)

Creates a subgrid cell. The optional style applies to the host cell area.
public CliGridCell(CliGrid subgrid, CliCellStyle? style = null, int colSpan = 1, int rowSpan = 1)

Parameters

subgrid CliGrid
style CliCellStyle
colSpan int
rowSpan int

Exceptions

ArgumentNullException
subgrid is null.
ArgumentOutOfRangeException
A span is less than one.

CliGridCell(object?, CliCellStyle?, int, int)

Creates a scalar-content grid cell.
public CliGridCell(object? content, CliCellStyle? style = null, int colSpan = 1, int rowSpan = 1)

Parameters

content object
style CliCellStyle
colSpan int
rowSpan int

Exceptions

ArgumentException
content is a CliGrid; use the subgrid constructor instead.
ArgumentOutOfRangeException
A span is less than one.

Properties

ColOffset

Column offset from the anchor cell for covered span cells.
public int ColOffset { get; }

Property Value

int

ColSpan

Number of columns covered by this cell.
public int ColSpan { get; }

Property Value

int

Content

Scalar content rendered through the effective cell style; null uses the null display value.
public object? Content { get; }

Property Value

object

FillHorizontal

Whether frame content fills this cell horizontally.
public bool FillHorizontal { get; }

Property Value

bool

FillVertical

Whether frame content fills this cell vertically.
public bool FillVertical { get; }

Property Value

bool

HasSubgrid

Whether this cell hosts a subgrid.
public bool HasSubgrid { get; }

Property Value

bool

IsAnchor

Whether this slot is the anchor cell for its content/span.
public bool IsAnchor { get; }

Property Value

bool

IsCovered

Whether this slot is covered by a spanning cell whose anchor is elsewhere.
public bool IsCovered { get; }

Property Value

bool

IsFrameCell

Whether this cell is structural frame content.
public bool IsFrameCell { get; }

Property Value

bool

RowOffset

Row offset from the anchor cell for covered span cells.
public int RowOffset { get; }

Property Value

int

RowSpan

Number of rows covered by this cell.
public int RowSpan { get; }

Property Value

int

Style

Cell-level style applied after row and column styles.
public CliCellStyle? Style { get; }

Property Value

CliCellStyle

Subgrid

Hosted subgrid content, when this cell wraps another grid.
public CliGrid? Subgrid { get; }

Property Value

CliGrid