GetPageOrientation
Get page orientation
Parameters:
This method doesn't have any parameters.
Returns:
- Type
-
PageOrientation
Example
Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oPageOrientation = oWorksheet.GetPageOrientation();
oWorksheet.GetRange("A1").SetValue("Page orientation: ");
oWorksheet.GetRange("C1").SetValue(oPageOrientation);
builder.SaveFile("xlsx", "GetPageOrientation.xlsx");
builder.CloseFile();
Resulting document