Get Started
Documentation

GetTopMargin

GetTopMargin() → { number }

Get top margin sheet

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oTopMargin = oWorksheet.GetTopMargin();
oWorksheet.GetRange("A1").SetValue("Top margin: " + oTopMargin + " mm");
builder.SaveFile("xlsx", "GetTopMargin.xlsx");
builder.CloseFile();

Resulting document