Sets the top margin of the sheet.
Name | Type | Description |
nPoints | number | The top margin size measured in points. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.SetTopMargin(25.1); var nTopMargin = oWorksheet.GetTopMargin(); oWorksheet.GetRange("A1").SetValue("Top margin: " + nTopMargin + " mm"); builder.SaveFile("xlsx", "SetTopMargin.xlsx"); builder.CloseFile();