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
when TextLayout.Multiline.maxLines is not positive or TextLayout.Multiline.lineSpacing is negative.
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
treatment of text omitted by the available space or TextLayout.Multiline.maxLines.