SelectCurAlignment

Syntax

SelectCurAlignment

Remarks

Extends the selection forward until text with a different paragraph alignment is encountered. There are four types of paragraph alignment: left, centered, right, and justified.

Example

This example positions the insertion point at the beginning of the first subsequent paragraph that does not have the same alignment as the current paragraph. If the alignment is the same to the end of the document, Word displays a message box.


SelectCurAlignment
CharRight
If CmpBookmarks("\Sel", "\EndOfDoc") = 0 Then
    MsgBox "No variation in alignment found."
End If

See Also

CenterPara, FormatParagraph, JustifyPara, LeftPara, RightPara, SelectCurIndent, SelectCurSpacing, SelectCurTabs