Indent a line or a paragraph

This page applies to WPF projects only

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 2ff91340-477e-4efa-a0f7-af20851e4daa or Direct Selection 6dd6571f-c116-451d-8dd2-1f88b8406362.

  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 a4a490be-7ec2-42c4-86bc-8c718af620ca.

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