RightPara, RightPara()

Syntax

RightPara

RightPara()

Remarks

The RightPara statement aligns the selected paragraphs with the right indent.

The RightPara() function returns the following values.

Value

Explanation

0 (zero)

If none of the selection is right-aligned

–1

If part of the selection is right-aligned

1

If all the selection is right-aligned


Example

This example formats each right-aligned paragraph with a left indent of 2 inches:


StartOfDocument
While ParaDown()                    'Check each paragraph one by one,
    ParaUp                            'including the first paragraph
    If RightPara() = 1 Then            'If right-aligned, then indent left
        FormatParagraph .LeftIndent = "2 in"
    End If
    ParaDown
Wend

See Also

CenterPara, FormatParagraph, JustifyPara, LeftPara