Interface ITextBuilder
- Assembly
- SunamoTextOutputGenerator.dll
Interface for building text output with append and undo capabilities.
public interface ITextBuilder
- Extension Methods
Properties
CanUndo
Gets or sets a value indicating whether undo operation is enabled.
bool CanUndo { get; set; }
Property Value
List
Gets or sets the list of lines when list mode is used.
List<string>? List { get; set; }
Property Value
PrependEveryNoWhite
Gets or sets text to prepend before every non-whitespace append.
string PrependEveryNoWhite { get; set; }
Property Value
Methods
Append(object)
Appends the string representation of an object.
void Append(object value)
Parameters
valueobjectThe object to append.
Append(string)
Appends text.
void Append(string text)
Parameters
textstringThe text to append.
AppendLine()
Appends a new line.
void AppendLine()
AppendLine(string)
Appends text followed by a new line.
void AppendLine(string text)
Parameters
textstringThe text to append.
Clear()
Clears all content.
void Clear()
ToString()
Returns the built text as a string.
string ToString()
Returns
- string
The built text.
Undo()
Undoes the last append operation.
void Undo()