Share via


TextBlock.TextWrapping Property

Definition

Gets or sets how the TextBlock wraps text.

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

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

Applies to