共用方式為


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 列舉值,指定要使用的文字修剪行為。 預設值為 [無]。

適用於