var instance = new GC.Spread.Sheets.Shapes.ShapeCollection(sheet); var value; // Type: any value = instance.ungroup(groupShape);
function ungroup( groupShape : GroupShape ) : any;
Parameters
- groupShape
- The groupShape to separate.
var instance = new GC.Spread.Sheets.Shapes.ShapeCollection(sheet); var value; // Type: any value = instance.ungroup(groupShape);
function ungroup( groupShape : GroupShape ) : any;
//This sample shows how to separate a groupShape to some shapes var shape1 = activeSheet.shapes.add("shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 50, 100, 150); var shape2 = activeSheet.shapes.addConnector("shape2", GC.Spread.Sheets.Shapes.ConnectorType.elbow, 200, 50, 300, 200); var shapes = [shape1, shape2]; var groupShape = activeSheet.shapes.group(shapes); activeSheet.shapes.ungroup(groupShape);