TextBlock.TextTrimming Property

May 11, 2014

Gets or sets the text trimming behavior to employ when content overflows the content area.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public TextTrimming TextTrimming { get; set; }
<TextBlock TextTrimming="None"/>
-or-
<TextBlock TextTrimming="WordEllipsis"/>

Property Value

Type: System.Windows.TextTrimming
One of the TextTrimming values that specifies the text trimming behavior to employ. The default is None.

The TextTrimming property has no effect unless the TextWrapping property is set to NoWrap.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2014 Microsoft