RichTextBlock.TextTrimming Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates how text is trimmed when it overflows the content area.
public:
property TextTrimming TextTrimming { TextTrimming get(); void set(TextTrimming value); };
TextTrimming TextTrimming();
void TextTrimming(TextTrimming value);
C#
public TextTrimming TextTrimming { get; set; }
var textTrimming = richTextBlock.textTrimming;
richTextBlock.textTrimming = textTrimming;
Public Property TextTrimming As TextTrimming
XAML
<RichTextBlock TextTrimming="None"/>
-or-
<RichTextBlock TextTrimming="WordEllipsis"/>
One of the TextTrimming enumeration values that specifies the text trimming behavior to use. The default is None.
Product | Versions |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |