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.

Nested Types

protected bool ShowEllipsis{ get }

When, overflow is truncated without rendering the "..." marker and no marker width is reserved.

protected override void OnEnable()
protected override void OnDisable()
protected override void OnDestroy()
protected override void BeforeApply()
protected override void OnApply()

See Also