Indent a line or a paragraph

このページは WPF プロジェクトにのみに適用

You can indent text that is contained in RichTextBox objects in Blend for Visual Studio 2012 in the following ways:

  • Indent the first line of a paragraph.

  • Indent the whole left edge of a paragraph.

  • Indent the whole right edge of a paragraph.

You can apply one or more of these different kinds of indents to a single paragraph. If your text object contains multiple paragraphs, you can apply indent properties to each paragraph separately in the object, or you can apply properties collectively to all paragraphs in the object.

To indent a paragraph

  1. Select the RichTextBox object that you want to format, by using either Selection JJ170670.2ff91340-477e-4efa-a0f7-af20851e4daa(ja-jp,VS.110).png or Direct Selection JJ170670.6dd6571f-c116-451d-8dd2-1f88b8406362(ja-jp,VS.110).png.

  2. To format only part of the text in the object, right-click the object, click Edit Text, and then drag the pointer to select the text that you want to format. To format only one paragraph at a time, position your cursor somewhere in the paragraph that you want to format. Otherwise, continue to the next step.

  3. In the Properties panel, under Text, select the Line Indent tab JJ170670.a4a490be-7ec2-42c4-86bc-8c718af620ca(ja-jp,VS.110).png.

  4. Set the Left indent JJ170670.facaf84b-e13b-494b-967f-385cc2fe7557(ja-jp,VS.110).png, Right indent JJ170670.e6fc8916-1584-46c5-807b-119751d2d167(ja-jp,VS.110).png, and First line indent JJ170670.f187c097-4ba7-4eae-ae73-048c3b202487(ja-jp,VS.110).png as you want.