跳到主要内容

GetBottomMargin

Returns the bottom margin of the sheet.

Syntax

expression.GetBottomMargin();

expression - A variable that represents a ApiWorksheet class.

Parameters

This method doesn't have any parameters.

Returns

number

Example

This example shows how to get the bottom margin of the sheet.

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