text

fun Component.text(out: ComponentType = ComponentType.LEGACY_AMPERSAND): String

Serializes this component into a string using the specified format.

Return

The serialized string representation.

Parameters

out

The component type to use for serialization. Defaults to LEGACY_AMPERSAND.


val Component.text: String

Property accessor for converting this component into a string using LEGACY_AMPERSAND format.

See also