WPS 加载项开发 > 表格 API 参考 > PageSetup > 属性 > PageSetup.BottomMargin 属性
?(磅:指打印的字符的高度的度量单位。1 磅等于 1/72 英寸,或大约等于 1 厘米的 1/28。)为单位返回或设置底端边距的大小。Double 类型,可读写。

语法

表达式.BottomMargin

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

说明

边距的设置和返回均以磅为单位。可使用 InchesToPoints 方法进行英寸到磅值的转换,也可使用 CentimetersToPoints 方法进行厘米到磅值的转换。

示例

下面的两个示例将工作表 Sheet1 的底端边距设为 0.5 英寸(36 磅)。

示例代码
Worksheets.Item("Sheet1").PageSetup.BottomMargin = Application.InchesToPoints(0.5)
Worksheets.Item("Sheet1").PageSetup.BottomMargin = 36

本示例显示 Sheet1 底端边距的当前设定值。

示例代码
let marginInches = Worksheets.Item("Sheet1").PageSetup.BottomMargin / 
Application.InchesToPoints(1)
MsgBox("The current bottom margin is " + marginInches + " inches")

Bottom Margin Property Find out the height of the bottom margin of pagesetup object?


请参阅