Get Started
Usage API

GetLeftMargin

GetLeftMargin() → { number }

Get left margin 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