共用方式為


TextBlock.TextTrimming 屬性

定義

取得或設定內容超出內容區域時要執行的文字修剪行為值。

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

屬性值

其中一個 TextTrimming 值,指定要採用的文字修剪行為。 預設值為 [無]。

適用於