Multiline

data class Multiline(val wrap: TextWrap = TextWrap.Word, val maxLines: Int = Int.MAX_VALUE, val overflow: TextOverflow = TextOverflow.Clip, val lineSpacing: Int = 0) : TextLayout(source)

Displays explicit lines with optional wrapping and a bounded number of visible lines.

LF, CRLF, CR, VT, FF, NEL, line separator, and paragraph separator each introduce a line break; CRLF is one break. Line breaking never splits a Unicode scalar and does not add selection or clipboard behavior. The original unresolved text remains available for semantics even when its visible presentation is truncated.

Throws

Constructors

Link copied to clipboard
constructor(wrap: TextWrap = TextWrap.Word, maxLines: Int = Int.MAX_VALUE, overflow: TextOverflow = TextOverflow.Clip, lineSpacing: Int = 0)

Properties

Link copied to clipboard

non-negative additional logical pixels between adjacent lines.

Link copied to clipboard

positive maximum number of displayed lines, including empty explicit lines.

Link copied to clipboard

treatment of text omitted by the available space or TextLayout.Multiline.maxLines.

Link copied to clipboard

presentation-only wrapping policy.