RichTextBlock.TextTrimming Property


Gets or sets a value that indicates how text is trimmed when it overflows the content area.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.RichTextBlock.TextTrimming.

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

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

Property Value


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

Applies to