Class Text
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
Multi-line styled text.
public sealed record Text : IEquatable<Text>
- Inheritance
-
Text
- Implements
- Inherited Members
Constructors
Text(IReadOnlyList<Line>)
Multi-line styled text.
public Text(IReadOnlyList<Line> Lines)
Parameters
LinesIReadOnlyList<Line>The lines, top to bottom.
Properties
Height
The number of lines.
public int Height { get; }
Property Value
Lines
The lines, top to bottom.
public IReadOnlyList<Line> Lines { get; init; }
Property Value
Width
The widest line's width in columns.
public int Width { get; }
Property Value
Methods
From(string)
Split a string into unstyled lines on \n and \r\n.
public static Text From(string s)
Parameters
sstring
Returns
Operators
implicit operator Text(Line)
Text with a single line.
public static implicit operator Text(Line line)
Parameters
lineLine
Returns
implicit operator Text(string)
Split a string into unstyled lines.
public static implicit operator Text(string s)
Parameters
sstring