Table of Contents

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

text string
style CliCharStyle

Properties

Style

The character style for this run.
public CliCharStyle Style { get; }

Property Value

CliCharStyle

Text

The text content in this run.
public string Text { get; }

Property Value

string

Methods

Length(IReadOnlyList<CliTextSegment>)

Returns the total text length of a line represented as segments.
public static int Length(IReadOnlyList<CliTextSegment> line)

Parameters

line IReadOnlyList<CliTextSegment>

Returns

int