Struct Span
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
A run of text with a single style.
public readonly record struct Span : IEquatable<Span>
- Implements
- Inherited Members
Constructors
Span(string, Style)
A run of text with a single style.
public Span(string Content, Style Style)
Parameters
ContentstringThe text. It is sanitized when drawn.
StyleStyleThe style patch applied to each cell.
Properties
Content
The text. It is sanitized when drawn.
public string Content { get; init; }
Property Value
Style
The style patch applied to each cell.
public Style Style { get; init; }
Property Value
Width
Display width in columns, as drawn on a single line.
public int Width { get; }
Property Value
Operators
implicit operator Span(string)
An unstyled span.
public static implicit operator Span(string content)
Parameters
contentstring