RichTextBlock.TextWrapping Property


Gets or sets how text wrapping occurs if a line of text extends beyond the available width of the RichTextBlock.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public TextWrapping TextWrapping { get; set; }

Property Value

Type: System.Windows.TextWrapping
One of the TextWrapping values. The default is Wrap.

You should consider the width of the RichTextBlock when you set the TextWrapping property. Any text that extends beyond the bounds of the RichTextBlock will not be displayed. If the TextWrapping property is set to NoWrap, text that exceeds the horizontal bounds can be scrolled into view using the cursor. Text that exceeds vertically can be scrolled into view using the keyboard or scrollbar.


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions