The maximum number of lines to display. Excess text is truncated with an ellipsis. Pass
undefined or omit to remove any line limit.Support
Usage
Single-line text
Two-line description
Combined with minimum scale factor
Allow text to shrink before truncating.Notes
- When text exceeds the line limit, it is truncated with an ellipsis (
...) at the end. - Passing
undefinedor omitting the argument removes any previously set line limit, allowing unlimited lines.
See Also
- minimumScaleFactor — allows text to shrink before truncating
- multilineTextAlignment — controls alignment of multi-line text
- lineSpacing — adjusts spacing between lines