Table of Contents

Class AnsiSegment

Namespace
SharpConsoleUI.Diagnostics.Snapshots
Assembly
SharpConsoleUI.dll

Represents a segment of a line (either text or ANSI code).

public record AnsiSegment : IEquatable<AnsiSegment>
Inheritance
AnsiSegment
Implements
Inherited Members

Constructors

AnsiSegment(string, AnsiSegmentType)

Represents a segment of a line (either text or ANSI code).

public AnsiSegment(string Content, AnsiSegmentType Type)

Parameters

Content string
Type AnsiSegmentType

Properties

Content

public string Content { get; init; }

Property Value

string

Type

public AnsiSegmentType Type { get; init; }

Property Value

AnsiSegmentType