Class RenderResult.Ansi
An ansi frame: text, possibly with newlines and ANSI escape sequences (toy_text).
public sealed class RenderResult.Ansi : RenderResult, IEquatable<RenderResult>, IDisposable
- Inheritance
-
RenderResult.Ansi
- Implements
- Inherited Members
- Extension Methods
Constructors
Ansi(string)
Wraps the text.
public Ansi(string text)
Parameters
textstringThe text.
Exceptions
- ArgumentNullException
Thrown when
textis null.
Properties
Text
The text.
public string Text { get; }
Property Value
Methods
Equals(RenderResult?)
Structural equality (see the class remarks).
public override bool Equals(RenderResult? other)
Parameters
otherRenderResultThe other result; may be null.
Returns
GetHashCode()
A hash consistent with Equals(RenderResult?): the case and the shapes, never the pixels.
public override int GetHashCode()
Returns
- int
The hash.
ToString()
The text itself.
public override string ToString()
Returns
- string
The text.