[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapeRange.Group

Group Method

Group()

Groups the shapes in the specified range.

Declaration
IShape Group()
Function Group() As IShape
Returns
Type Description
IShape

A Shape object that represents the grouped shape.

Examples
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();