TextContentBuilderBase
A base utility class for building and manipulating content based on the text. This class can be extended to support more types of text-based content, e.g. text with attachments or some metadata.
Provides methods for constructing formatted strings with features such as inserting text, adding new lines, and applying padding. The builder pattern supports a fluent and convenient approach to managing text content.
Inheritors
Types
Functions
Extension function for TextContentBuilder that adds line numbering to the content.
Adds padding to each line of the content produced by the provided builder block.
Adds the given text to the content. If the caret is not at the beginning of the line, a newline is added before appending the text.
Adds the given string as a new line of text to the content being built by the TextContentBuilder.