RichTextBlock.TextWrapping Property

Definition

Gets or sets a value that indicates whether text wrapping occurs if a line of text extends beyond the available width of the RichTextBlock.

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

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

Property Value

One of the TextWrapping enumeration values that specifies whether text is wrapped. The default is Wrap.

Applies to