跳到主要内容

SetBottomMargin

设置工作表的底边距。

语法

expression.SetBottomMargin(nPoints);

expression - 表示 ApiWorksheet 类的变量。

参数

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

返回值

此方法不返回任何数据。

示例

此示例设置工作表的底边距。

// How to set margin of the bottom.

// Resize the bottom margin of the sheet.

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