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
HEAD
Truncate the text at the beginning (head) and add an ellipsis (…) to indicate that more content exists.EllipsisMode={0}
MIDDLE
Truncate the text from the middle and add an ellipsis (…) in the middle to indicate that content is removed from both sides.EllipsisMode={1}
TAIL
Truncate the text at the end (tail) and add an ellipsis (…) to indicate that more content exists.EllipsisMode={2}
CLIP
Simply clip the text to the available width without adding an ellipsis. This may result in the text being cut off abruptly.EllipsisMode={3}
MARQUEE
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.EllipsisMode={4}

