本示例将活动文档中所有段落的右缩进设为距右边距 1 英寸。InchesToPoints 方法用来将英寸转化为磅值。

ActiveDocument.Paragraphs.RightIndent = InchesToPoints(1)