Table of Contents

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

Content string

The text. It is sanitized when drawn.

Style Style

The style patch applied to each cell.

Properties

Content

The text. It is sanitized when drawn.

public string Content { get; init; }

Property Value

string

Style

The style patch applied to each cell.

public Style Style { get; init; }

Property Value

Style

Width

Display width in columns, as drawn on a single line.

public int Width { get; }

Property Value

int

Operators

implicit operator Span(string)

An unstyled span.

public static implicit operator Span(string content)

Parameters

content string

Returns

Span