TextTrimming Enum

Definition

Describes how text is trimmed when it overflows the edge of its containing box.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum TextTrimming
XAML
<object property="enumMemberName"/>
Inheritance
TextTrimming
Attributes

Fields

Name Value Description
None 0

Default.

Text is truncated at a word boundary.

No trim indicator is drawn and the RichTextBlock/TextBlock IsTextTrimmedChanged event does not fire.

CharacterEllipsis 1

Text is trimmed at a character boundary. An ellipsis (...) is drawn in place of remaining text.

WordEllipsis 2

Text is trimmed at a word boundary. An ellipsis (...) is drawn in place of remaining text.

Clip 3

Text is trimmed at a pixel level, visually clipping the excess glyphs.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also