SetOrientation
Sets an angle to the current cell range.
Parameters:
Name |
Type |
Description |
angle |
Angle
|
Specifies the range angle. |
Returns:
-
This method doesn't return any data.
Example
Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
oWorksheet.GetRange("B1").SetValue("2");
var oRange = oWorksheet.GetRange("A1:B1");
oRange.SetOrientation("xlUpward");
builder.SaveFile("xlsx", "SetOrientation.xlsx");
builder.CloseFile();
Resulting document