[]
Groups the shapes in the specified range.
IShape Group()
Function Group() As IShape
| Type | Description |
|---|---|
| IShape | A Shape object that represents the grouped shape. |
IShapes shapes = worksheet.Shapes;
shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
shapes.AddShape(AutoShapeType.Oval, 140, 20, 100, 60);
IShapeRange shapeRange = shapes.Range[new int[] { 0, 1 }];
IShape groupShape = shapeRange.Group();