TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

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");
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