Back to API Reference
Class
EllipsisModifier
Inherits:BaseModifier
Truncates text that overflows its container and appends an ellipsis (...).
Remarks
Overflow is detected against the container's width without word wrap, and against its height with word wrap. Without word wrap the text keeps one line and the parameter (0-1) places the cut inside it: 0 takes the marker to the beginning, 0.5 to the middle, 1 (the default) to the end. With word wrap the text is clamped to the lines that fit the box: the tail of the last of them gives way to the marker and every line below is hidden, so the parameter has no effect there — a hidden line still occupies its place in the layout, and keeping the lower lines instead would draw them outside the box.
Derived Types(1)
Types that inherit from EllipsisModifier.
