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
ContentstringTypeAnsiSegmentType
Properties
Content
public string Content { get; init; }
Property Value
Type
public AnsiSegmentType Type { get; init; }