跳到主要内容

SetBottomMargin

设置工作表的底边距。

语法

expression.SetBottomMargin(nPoints);

expression - 表示 ApiWorksheet 类的变量。

参数

名称必需/可选数据类型默认值描述
nPoints必需number以磅为单位的底边距大小。

返回值

boolean

示例

定义电子表格中工作表的下页边距。

// How do I set the bottom margin of a worksheet in a spreadsheet?

// Adjust the spacing at the bottom of the printed page in a spreadsheet.

let worksheet = Api.GetActiveSheet();
worksheet.SetBottomMargin(25.1);
let bottomMargin = worksheet.GetBottomMargin();
worksheet.GetRange("A1").SetValue("Bottom margin: " + bottomMargin + " mm");