Table of Contents

Interface ITextBuilder

Namespace
SunamoTextOutputGenerator._public.SunamoInterfaces.Interfaces
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

bool

List

Gets or sets the list of lines when list mode is used.

List<string>? List { get; set; }

Property Value

List<string>

PrependEveryNoWhite

Gets or sets text to prepend before every non-whitespace append.

string PrependEveryNoWhite { get; set; }

Property Value

string

Methods

Append(object)

Appends the string representation of an object.

void Append(object value)

Parameters

value object

The object to append.

Append(string)

Appends text.

void Append(string text)

Parameters

text string

The text to append.

AppendLine()

Appends a new line.

void AppendLine()

AppendLine(string)

Appends text followed by a new line.

void AppendLine(string text)

Parameters

text string

The 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()