Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct EllipsisMode

sealed struct EllipsisMode
Specifies how to handle text that overflows its available width. The EllipsisMode struct defines options to handle text that exceeds the maximum number of lines mentioned in the paragraph. These options can be used for text truncation, where space is limited.

Fields

Constants

EllipsisMode = {0}
Truncate the text at the beginning (head) and add an ellipsis (…) to indicate that more content exists.

MIDDLE

EllipsisMode = {1}
Truncate the text from the middle and add an ellipsis (…) in the middle to indicate that content is removed from both sides.

TAIL

EllipsisMode = {2}
Truncate the text at the end (tail) and add an ellipsis (…) to indicate that more content exists.

CLIP

EllipsisMode = {3}
Simply clip the text to the available width without adding an ellipsis. This may result in the text being cut off abruptly.

MARQUEE

EllipsisMode = {4}
Scroll the text horizontally within the container, creating a marquee effect to display all the content over time. Default marquee repeat count is infinite and default marquee delay is 1200 ms.
Last modified on October 29, 2026