Formatted

class Formatted

Represents a string broken into sections annotated with separate formatting options.

See also

Constructors

Formatted
Link copied to clipboard
fun Formatted()

Types

Companion
Link copied to clipboard
object Companion
Static variables and methods.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
formattedSection
Link copied to clipboard
fun formattedSection(section: FormattedSection)
Add a formatted section to the Formatted.
fun formattedSection(text: String, block: FormattedSection.() -> Unit)
DSL function to add a formatted section to the Formatted.
getTextAsString
Link copied to clipboard
fun getTextAsString(): String
Get the formatted field's text as a plain String.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
toValue
Link copied to clipboard
fun toValue(): Value
Convert Formatted to a Value.