SetRightMargin
function SetRightMargin(nPoints: number = null): void
Description
Sets the right margin of the sheet.
Parameters
- nPoints
number
null The right margin size measured in points.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetRightMargin(20.8);
var nRightMargin = oWorksheet.GetRightMargin();
oWorksheet.GetRange("A1").SetValue("Right margin: " + nRightMargin + " mm");