Export (0) Print
Expand All

Set text wrapping

You can control whether text that is contained in a TextBox or TextBlock object in Microsoft Expression Blend will wrap onto multiple lines when the text cannot fit within the width of the text box object.

To set text wrapping

  1. Select the TextBox or TextBlock object that you want to format, by using either the Selection tool Cc294640.2ff91340-477e-4efa-a0f7-af20851e4daa(en-us,Expression.40).png or the Direct Selection tool Cc294640.6dd6571f-c116-451d-8dd2-1f88b8406362(en-us,Expression.40).png.

  2. In the Properties panel, under Text, click Show advanced properties Cc294640.de239c9d-42ce-4f5e-83b9-5f9924c0431f(en-us,Expression.40).png to see the TextWrapping property.

    tip noteTip

    If you do not see the TextWrapping property, you might be in text-editing mode (F2), which lets you change the text that is displayed in the control. To exit text-editing mode, press ESC.

  3. Click the TextWrapping value, and then click one of the following options:

    Cc294640.25182a96-9a69-478a-9cfe-5b360e6a9bea(en-us,Expression.40).png   No Wrap, to prevent text from wrapping. This option confines each line of text to a single line regardless of the width of the text box.

    Cc294640.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(en-us,Expression.40).png   WrapWithOverflow (Windows Presentation Foundation only), to allow the text to break onto multiple lines when the lines of text in the object are longer than the width of the text box. This makes sure that the text will fit within the width of the text box. Note that this option does not wrap single words on individual lines; if a word on a line by itself is longer than the width of the text box, part of the word will not be displayed.

    Cc294640.f0c1ff71-7814-42ba-806b-7ea92d616e69(en-us,Expression.40).png   Wrap, to make a line of text break across multiple lines when the line is longer than the width of the text box. This option also wraps an individual word onto multiple lines if the word is longer than the width of the text box.

Wrap options for text

Cc294640.0ef4739a-9454-46f1-850c-89a060f03723(en-us,Expression.40).png

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
Show:
© 2014 Microsoft