Share via


Indent a line or a paragraph

This page applies to WPF projects only

You can indent text that is contained in RichTextBox objects in Microsoft Expression Blend 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 the Selection Cc295258.2ff91340-477e-4efa-a0f7-af20851e4daa(en-us,Expression.10).png tool or the Direct Selection Cc295258.6dd6571f-c116-451d-8dd2-1f88b8406362(en-us,Expression.10).png tool.

  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 Cc295258.a4a490be-7ec2-42c4-86bc-8c718af620ca(en-us,Expression.10).png tab.

  4. Set the Left Indent Cc295258.facaf84b-e13b-494b-967f-385cc2fe7557(en-us,Expression.10).png, Right Indent Cc295258.e6fc8916-1584-46c5-807b-119751d2d167(en-us,Expression.10).png, and First Line Indent Cc295258.f187c097-4ba7-4eae-ae73-048c3b202487(en-us,Expression.10).png properties as you want.