Sdílet prostřednictvím


TextBlock.TextTrimming Property

Definition

Gets or sets the text trimming behavior to employ when content overflows the content area.

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"/>

Property Value

One of the TextTrimming values that specifies the text trimming behavior to employ. The default is None.

Applies to