Class CliTextSegment
- Namespace
- ItTiger.TigerCli.Primitives
- Assembly
- ItTiger.TigerCli.dll
A contiguous run of text with a single character style.
public sealed class CliTextSegment
- Inheritance
-
CliTextSegment
- Inherited Members
Constructors
CliTextSegment(string, CliCharStyle)
A contiguous run of text with a single character style.
public CliTextSegment(string text, CliCharStyle style)
Parameters
textstringstyleCliCharStyle
Properties
Style
The character style for this run.
public CliCharStyle Style { get; }
Property Value
Text
The text content in this run.
public string Text { get; }
Property Value
Methods
Length(IReadOnlyList<CliTextSegment>)
Returns the total text length of a line represented as segments.
public static int Length(IReadOnlyList<CliTextSegment> line)
Parameters
lineIReadOnlyList<CliTextSegment>