GetTopMargin
function GetTopMargin(): number
Description
Returns the top margin of the sheet.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var nTopMargin = oWorksheet.GetTopMargin();
oWorksheet.GetRange("A1").SetValue("Top margin: " + nTopMargin + " mm");