SpreadJS Documentation
GC.Spread.Sheets.Shapes Namespace / GroupShape type / rotate Method
The rotate of the groupShape.The unit of measurement is the angle.
In This Topic
    rotate Method
    In This Topic
    Gets or sets the rotate of groupShape.
    Syntax
    var instance = new GC.Spread.Sheets.Shapes.GroupShape(worksheet, name);
    var returnValue; // Type: any
    returnValue = instance.rotate(value);
    function rotate( 
       value : string
    ) : any;

    Parameters

    value
    The rotate of the groupShape.The unit of measurement is the angle.
    Example
    var shape1 = sheet.shapes.add("myShape1", GC.Spread.Sheets.Shapes.AutoShapeType.rectangle, 62 * 9, 0, 200, 200);
    var shape2 = sheet.shapes.add("myShape2", GC.Spread.Sheets.Shapes.AutoShapeType.rectangle, 20, 20, 200, 200);
    var shape = sheet.shapes.group([shape1, shape2]);
    shape.rotate(60);
    var angle = shape.rotate();
    See Also

    Reference

    GroupShape type