Table of contents
TOC
Collapse the table of content
Expand the table of content

ParagraphFormat.RightIndent Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns or sets a Variant that represents the right indent (in points) for the specified paragraphs. Read/write.

Syntax

expression. RightIndent

_expression_A variable that represents a ParagraphFormat object.

Return Value

Variant

Example

This example sets the right indent for all paragraphs in the active document to one inch from the right margin. The InchesToPoints method is used to convert inches to points. This example assumes that there is at least one shape on the first page of the active publication.

Sub SetRightIndent() 
 ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .TextRange.Paragraphs(1).ParagraphFormat _ 
 .RightIndent = InchesToPoints(1) 
End Sub
© 2018 Microsoft