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
linesList<List<CliTextSegment>>styleCliCellStyle
Properties
ColSpan
Column span of the anchor cell.
public int ColSpan { get; }
Property Value
Height
Current measured height.
public int Height { get; }
Property Value
InitialLines
Immutable clone of the cell's original measured line shape.
public List<List<CliTextSegment>> InitialLines { get; }
Property Value
IsCovered
Whether this measured slot is covered by a spanning anchor cell.
public bool IsCovered { get; }
Property Value
IsScrollXActive
Whether horizontal scrolling is active for this measured cell.
public bool IsScrollXActive { get; }
Property Value
IsScrollYActive
Whether vertical scrolling is active for this measured cell.
public bool IsScrollYActive { get; }
Property Value
Lines
Working measured lines after wrapping, alignment, and viewport slicing.
public List<List<CliTextSegment>> Lines { get; }
Property Value
RowSpan
Row span of the anchor cell.
public int RowSpan { get; }
Property Value
Style
Effective style used to measure the cell.
public CliCellStyle Style { get; }
Property Value
TotalLinesCount
Total line count before viewport slicing.
public int TotalLinesCount { get; }
Property Value
Width
Current measured width.
public int Width { get; }
Property Value
Methods
UpdateLines(List<List<CliTextSegment>>)
Replaces the working lines and recalculates measured size.
public void UpdateLines(List<List<CliTextSegment>> lines)
Parameters
linesList<List<CliTextSegment>>