Get Started
Usage API

GetRightMargin

GetRightMargin() → { number }

Get right margin sheet

Parameters:

This method doesn't have any parameters.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oRightMargin = oWorksheet.GetRightMargin();
oWorksheet.GetRange("A1").SetValue("Right margin: " + oRightMargin + " mm");
builder.SaveFile("xlsx", "GetRightMargin.xlsx");
builder.CloseFile();

Resulting document