Understanding Shape.SetAngle() results

Diagram Shape object has SetAngle method for rotate shape. I’ts work, but I’m not understood logic of this work. For example, next code:
shape.SetAngle(90);
means that shape was rotated 90 degrees right. But result next:result.zip (15.7 KB)

I’m try rotate shape in Visio right to 90 degrees, and then open file under debug, and in shape.XForm.Angle value was -1.57…

@tvv91

Thanks for your inquiry.

Shape.SetAngle() method accepts the value in radian where 1 Degree = 0.0174533 Radian and 90 Degree = 1.57 Radian. You may specify angle values in radian and in case you still face any issue, please feel free to let us know.

1 Like

Yes, it’s works. Please, update your documentation here Shape.SetAngle | Aspose.Diagram for .NET API Reference

@tvv91

Thanks for your feedback.

We will definitely update the documentation of the API in order to specify the unit of value which respective method takes. We will let you know as soon as your suggestions are implemented. Please spare us little time.