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 值之一。 默认值为“无”。

适用于