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
subgridCliGridstyleCliCellStylecolSpanintrowSpanint
Exceptions
- ArgumentNullException
subgridisnull.- 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
contentobjectstyleCliCellStylecolSpanintrowSpanint
Exceptions
- ArgumentException
contentis 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
ColSpan
Number of columns covered by this cell.
public int ColSpan { get; }
Property Value
Content
Scalar content rendered through the effective cell style;
null uses the null display value.public object? Content { get; }
Property Value
FillHorizontal
Whether frame content fills this cell horizontally.
public bool FillHorizontal { get; }
Property Value
FillVertical
Whether frame content fills this cell vertically.
public bool FillVertical { get; }
Property Value
HasSubgrid
Whether this cell hosts a subgrid.
public bool HasSubgrid { get; }
Property Value
IsAnchor
Whether this slot is the anchor cell for its content/span.
public bool IsAnchor { get; }
Property Value
IsCovered
Whether this slot is covered by a spanning cell whose anchor is elsewhere.
public bool IsCovered { get; }
Property Value
IsFrameCell
Whether this cell is structural frame content.
public bool IsFrameCell { get; }
Property Value
RowOffset
Row offset from the anchor cell for covered span cells.
public int RowOffset { get; }
Property Value
RowSpan
Number of rows covered by this cell.
public int RowSpan { get; }
Property Value
Style
Cell-level style applied after row and column styles.
public CliCellStyle? Style { get; }
Property Value
Subgrid
Hosted subgrid content, when this cell wraps another grid.
public CliGrid? Subgrid { get; }