Hi,
It seems like you will have to rotate the line to make it rise.
See the following code and the output file.
C#
string filePath = @"F:\Shak-Data-RW\Downloads\source.xlsx";
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
Aspose.Cells.Drawing.LineShape shape = worksheet.Shapes.AddLine(3, 100, 7, 0, 300, 250);
shape.RotationAngle = 270;
workbook.Save(filePath + ".out.xlsx");
Many Thanks and Kind Regards,
Shakeel Faiz
Support Developer
Aspose Sialkot Team
Contact UsAspose - The .NET and Java Component Publisher
Keep in touch! We're on
Twitter and
Facebook