Share via


Set text wrapping

You can control whether text that is contained in a TextBox or TextBlock object in Blend for Visual Studio 2012 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 2ff91340-477e-4efa-a0f7-af20851e4daa or the Direct Selection tool 6dd6571f-c116-451d-8dd2-1f88b8406362.

  2. In the Properties panel, under Text, click Show advanced properties de239c9d-42ce-4f5e-83b9-5f9924c0431f to see the TextWrapping property.

    Tip

    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:

    No Wrap 25182a96-9a69-478a-9cfe-5b360e6a9bea   Prevents text from wrapping. This option confines each line of text to a single line regardless of the width of the text box.

    WrapWithOverflow 05fe4b1d-f584-4bd2-99b6-8bc2d735a89d (Windows Presentation Foundation only)   Allows 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.

    Wrap f0c1ff71-7814-42ba-806b-7ea92d616e69   Makes 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.