Table of Contents

Class FormattedTextBuilder

Namespace
NanoByte.Common.EtoControls
Assembly
NanoByte.Common.EtoForms.dll

Builds a formatted string with colored paragraphs for display in a Eto.Forms.RichTextArea.

public sealed class FormattedTextBuilder
Inheritance
object
FormattedTextBuilder
Extension Methods

Properties

IsEmpty

Indicates whether no entries have been appended yet.

public bool IsEmpty { get; }

Property Value

bool

Methods

AppendLine(LogSeverity, string)

Appends a log entry as a new line.

public void AppendLine(LogSeverity severity, string message)

Parameters

severity LogSeverity

The type/severity of the entry. Determines the text color.

message string

The message of the entry.

Build()

Builds a read-only Eto.Forms.RichTextArea displaying the aggregated entries with colors based on their severity.

public RichTextArea Build()

Returns

RichTextArea

ToString()

Returns all aggregated entries as a single string.

public override string ToString()

Returns

string