Aracılığıyla paylaş


Set text wrapping

You can control whether text that is contained in a TextBox or TextBlock object in Visual Studio 2012 için 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 JJ170616.2ff91340-477e-4efa-a0f7-af20851e4daa(tr-tr,VS.110).png or the Direct Selection tool JJ170616.6dd6571f-c116-451d-8dd2-1f88b8406362(tr-tr,VS.110).png.

  2. In the Properties panel, under Text, click Show advanced properties JJ170616.de239c9d-42ce-4f5e-83b9-5f9924c0431f(tr-tr,VS.110).png to see the TextWrapping property.

    İpucu

    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 JJ170616.25182a96-9a69-478a-9cfe-5b360e6a9bea(tr-tr,VS.110).png   Prevents text from wrapping. This option confines each line of text to a single line regardless of the width of the text box.

    WrapWithOverflow JJ170616.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(tr-tr,VS.110).png (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 JJ170616.f0c1ff71-7814-42ba-806b-7ea92d616e69(tr-tr,VS.110).png   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.