setAngle
setAngle(angle)
Sets new angle of shape. The angle’s unit is radian.
| Parameter | Type | Description |
|---|---|---|
| angle | float | New angle which unit is radian not degree double . |
Example:
var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");
diagram = new aspose.diagram.Diagram("RetrieveShapeInfo.vsd");
shape = diagram.getPages().getPage("Page-2").getShapes().getShape(2);
// Add a shape and set the angle
shape.setAngle(190);
diagram.save("out-RotateVisioShape.vsdx", aspose.diagram.SaveFileFormat.VSDX);