TextBlock.TextWrapping Property


Gets or sets how the TextBlock wraps text.

 property TextWrapping TextWrapping { TextWrapping get(); void set(TextWrapping value); };
TextWrapping TextWrapping();

void TextWrapping(TextWrapping value);
public TextWrapping TextWrapping { get; set; }
var textWrapping = textBlock.textWrapping;
textBlock.textWrapping = textWrapping;
Public Property TextWrapping As TextWrapping
<TextBlock TextWrapping="Wrap"/>
<TextBlock TextWrapping="NoWrap"/>

Property Value

A value that indicates how the TextBlock wraps text. The default is NoWrap.

Applies to