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
-
objectFormattedTextBuilder
- Extension Methods
Properties
IsEmpty
Indicates whether no entries have been appended yet.
public bool IsEmpty { get; }
Property Value
Methods
AppendLine(LogSeverity, string)
Appends a log entry as a new line.
public void AppendLine(LogSeverity severity, string message)
Parameters
severityLogSeverityThe type/severity of the entry. Determines the text color.
messagestringThe 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()