Get Started
Documentation

SetLeftMargin

SetLeftMargin(nPoints)

Set left margin sheet

Parameters:

Name Type Description
nPoints number

in points.

Example

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

Resulting document