Skip to content

OverlayLine ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A single line of styled text in an editor overlay.

csharp
public record OverlayLine : IEquatable<OverlayLine>

Inheritance ​

Object → OverlayLine

Implements ​

Constructors ​

OverlayLine(string, Hex1bColor?, Hex1bColor?) ​

A single line of styled text in an editor overlay.

Parameters:

csharp
public OverlayLine(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; }

Segments ​

Rich styled segments for this line. When set, these are used instead of Text/Foreground/Background for rendering.

Returns: IReadOnlyList<OverlaySegment>

csharp
public IReadOnlyList<OverlaySegment>? Segments { get; init; }

Text ​

Returns: String

csharp
public string Text { get; init; }

Released under the MIT License.