SetLeftMargin
function SetLeftMargin(nPoints: number = null): void
Description
Sets the left margin of the sheet.
Parameters
- nPoints
number
null The left margin size measured in points.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetLeftMargin(20.8);
var nLeftMargin = oWorksheet.GetLeftMargin();
oWorksheet.GetRange("A1").SetValue("Left margin: " + nLeftMargin + " mm");