Get Started
Usage API
More information

SetOrientation

SetOrientation(angle)

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");
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
oWorksheet.GetRange("B1").SetValue("2");
oRange = oWorksheet.GetRange("A1:B1");
oRange.SetOrientation("xlUpward");
builder.SaveFile("xlsx", "SetOrientation.xlsx");
builder.CloseFile();

Resulting document