Get Started
Usage API
More information

SetBottomMargin

SetBottomMargin(nPoints)

Set the bottom margin of the sheet.

Parameters:

Name Type Description
nPoints number

The bottom margin size measured in points.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.SetBottomMargin(25.1);
oBottomMargin = oWorksheet.GetBottomMargin();
oWorksheet.GetRange("A1").SetValue("Bottom margin: " + oBottomMargin  + " mm");
builder.SaveFile("xlsx", "SetBottomMargin.xlsx");
builder.CloseFile();

Resulting document