WPS 基础接口 > 文字 API 参考 > PageSetup > 属性 > PageSetup.BottomMargin 属性
返回或设置页面底边与正文文本边界之间的距离(以磅为单位)。Single 类型,可读写。

语法

表达式.BottomMargin

表达式   一个代表 PageSetup 对象的变量。

示例

本示例将活动文档的下边距设置为 72 磅(即 1 英寸),上边距设置为 2 英寸。InchesToPoints 方法用来将英寸转化为磅值。

示例代码
let pageSetup = ActiveDocument.PageSetup
pageSetup.BottomMargin = 72
pageSetup.TopMargin = InchesToPoints(2)

本示例将当前选定内容所有节的下边距设置为 2.5 英寸。

示例代码
Selection.PageSetup.BottomMargin = InchesToPoints(2.5)

本示例返回所选部分第一节的下边距。PointsToInches 方法用来将结果转换为英寸。

示例代码
let sngMargin = Selection.Sections.Item(1).PageSetup.BottomMargin
MsgBox(PointsToInches(sngMargin) + " inches")


请参阅