RichTextBlock.TextTrimming 属性

定义

获取或设置一个值,该值指示文本溢出内容区域时如何剪裁。

public:
 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"/>
-or-
<RichTextBlock TextTrimming="WordEllipsis"/>

属性值

指定要使用的文本剪裁行为的 TextTrimming 枚举值之一。 默认值为“无”。

适用于