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");