RenderOptions Class

Represents render options.
public record RenderOptions : IEquatable<RenderOptions>
Interfaces

Constructors

RenderOptions(IReadOnlyCapabilities, Size)
Represents render options.

Properties

bool Ansi
Gets a value indicating whether or not VT/Ansi codes are supported.
IReadOnlyCapabilities Capabilities
ColorSystem ColorSystem
Gets the current color system.
int? Height
Gets the requested height.
Justify? Justification
Gets the current justification.
bool Unicode
Gets a value indicating whether or not unicode is supported.

Methods

static RenderOptions Create(IAnsiConsole, IReadOnlyCapabilities)
Creates a RenderOptions instance from a IAnsiConsole.

Extension Methods

T And<RenderOptions>(Action<RenderOptions>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.