Docsv2.12.12
Back to API Reference
Class

EllipsisModifier

Inherits:BaseModifier

Truncates text that overflows its container and appends an ellipsis (...).

Remarks

Parameter: optional position (0-1) controlling where the ellipsis appears: - 0: Truncates from the start, ellipsis at the beginning - 0.5: Truncates from the middle, ellipsis in the center - 1 (default): Truncates from the end, ellipsis at the end The modifier automatically detects overflow based on container height (with word wrap) or width (without word wrap) and uses binary search to find the optimal truncation point.

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 OnApply()

See Also