OverlaySegment
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
A styled text segment within an overlay line. Allows mixing colors and styles within a single line.
csharp
public record OverlaySegment : IEquatable<OverlaySegment>Inheritance
Object → OverlaySegment
Implements
Constructors
OverlaySegment(string, Hex1bColor?, Hex1bColor?)
A styled text segment within an overlay line. Allows mixing colors and styles within a single line.
Parameters:
Text(String):Foreground(Nullable<Hex1bColor>):Background(Nullable<Hex1bColor>):
csharp
public OverlaySegment(string Text, Hex1bColor? Foreground = null, Hex1bColor? Background = null)Properties
Background
Returns: Nullable<Hex1bColor>
csharp
public Hex1bColor? Background { get; init; }Foreground
Returns: Nullable<Hex1bColor>
csharp
public Hex1bColor? Foreground { get; init; }IsBold
Whether this segment should be rendered in bold.
Returns: Boolean
csharp
public bool IsBold { get; init; }IsItalic
Whether this segment should be rendered in italic.
Returns: Boolean
csharp
public bool IsItalic { get; init; }Text
Returns: String
csharp
public string Text { get; init; }