TextBlock.TextTrimming Property


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

 property TextTrimming TextTrimming { TextTrimming get(); void set(TextTrimming value); };
TextTrimming TextTrimming();

void TextTrimming(TextTrimming value);
public TextTrimming TextTrimming { get; set; }
var textTrimming = textBlock.textTrimming;
textBlock.textTrimming = textTrimming;
Public Property TextTrimming As TextTrimming
<TextBlock TextTrimming="None"/>
<TextBlock TextTrimming="WordEllipsis"/>

Property Value


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

Applies to