setMaxLines

fun setMaxLines(maxLines: Int): TextBlock

Set the maximum allowed lines. Long text that exceeds maxLines will be trimmed

Return

this

Parameters

maxLines

the maximum allowed lines (minimum is 1)