Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.17 KB

textbox_textwrapping.md

File metadata and controls

39 lines (25 loc) · 1.17 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.TextBox.TextWrapping
winrt property

Windows.UI.Xaml.Controls.TextBox.TextWrapping

-description

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

-xaml-syntax

<TextBlock TextWrapping="Wrap"/>
-or-
<TextBlock TextWrapping="NoWrap"/>

-property-value

One of the TextWrapping values. The default is NoWrap.

-remarks

TextBox and RichEditBox don't support the WrapWholeWords value for their TextWrapping properties. If you try to use WrapWholeWords as a value for TextBox.TextWrapping or RichEditBox.TextWrapping, an exception is thrown.

-examples

The following example shows how you can use the TextWrapping property in XAML.

[!code-xamlScrollBarXAML]

-see-also