本示例将当前所选段落的格式设置为右对齐。

Selection.ParagraphFormat.Alignment = wpsAlignParagraphRight