Table of Contents

Class MeasuredCell

Namespace
ItTiger.TigerCli.Primitives
Assembly
ItTiger.TigerCli.dll
Measured representation of a grid cell after formatting, markup parsing, and layout.
public sealed class MeasuredCell
Inheritance
MeasuredCell
Inherited Members

Constructors

MeasuredCell(List<List<CliTextSegment>>, CliCellStyle)

Creates a measured cell from segmented lines and the effective cell style.
public MeasuredCell(List<List<CliTextSegment>> lines, CliCellStyle style)

Parameters

lines List<List<CliTextSegment>>
style CliCellStyle

Properties

ColSpan

Column span of the anchor cell.
public int ColSpan { get; }

Property Value

int

Height

Current measured height.
public int Height { get; }

Property Value

int

InitialLines

Immutable clone of the cell's original measured line shape.
public List<List<CliTextSegment>> InitialLines { get; }

Property Value

List<List<CliTextSegment>>

IsCovered

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

Property Value

bool

IsScrollXActive

Whether horizontal scrolling is active for this measured cell.
public bool IsScrollXActive { get; }

Property Value

bool

IsScrollYActive

Whether vertical scrolling is active for this measured cell.
public bool IsScrollYActive { get; }

Property Value

bool

Lines

Working measured lines after wrapping, alignment, and viewport slicing.
public List<List<CliTextSegment>> Lines { get; }

Property Value

List<List<CliTextSegment>>

RowSpan

Row span of the anchor cell.
public int RowSpan { get; }

Property Value

int

Style

Effective style used to measure the cell.
public CliCellStyle Style { get; }

Property Value

CliCellStyle

TotalLinesCount

Total line count before viewport slicing.
public int TotalLinesCount { get; }

Property Value

int

Width

Current measured width.
public int Width { get; }

Property Value

int

Methods

UpdateLines(List<List<CliTextSegment>>)

Replaces the working lines and recalculates measured size.
public void UpdateLines(List<List<CliTextSegment>> lines)

Parameters

lines List<List<CliTextSegment>>