Freigeben über


RichTextBlock.TextWrapping Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Property TextWrapping As TextWrapping
public TextWrapping TextWrapping { get; set; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5

Platforms

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