GetRightMargin
function GetRightMargin(): number
Description
Returns the right margin of the sheet.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var nRightMargin = oWorksheet.GetRightMargin();
oWorksheet.GetRange("A1").SetValue("Right margin: " + nRightMargin + " mm");