RightMargin 属性

       

返回或设置正文右边界与页面右边距之间的距离(以磅为单位)。Single 类型,可读写。

expression.RightMargin

expression   必需。该表达式返回“应用于”列表中的一个对象。

说明

如果将 MirrorMargins 属性设置为 True,则 RightMargin 属性控制外部边距的设置,LeftMargin 属性控制内部边距的设置。

示例

本示例将显示活动文档的右边距设置。PointsToInches 方法用来将结果转换为英寸。

With ActiveDocument.PageSetup
    Msgbox "The right margin is set to " _
        & PointsToInches(.RightMargin) & " inches."
End With

本示例设置文档选定部分第二节的右边距。InchesToPoints 方法用来将英寸转换为磅值。

Selection.Sections(2).PageSetup.RightMargin = InchesToPoints(1)