Get Started
Usage API
More information

GetLeftMargin

GetLeftMargin() → { number }

Get the left margin of the sheet.

Parameters:

This method doesn't have any parameters.

Returns:

Type
number

Example

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

Resulting document