TextBlock.TextWrapping Property

Definition

Gets or sets how the TextBlock wraps text.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.TextWrapping.

public:
 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"/>
-or-
<TextBlock TextWrapping="NoWrap"/>

Property Value

TextWrapping

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

Applies to