[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGroupShapes.Item

this Property

this[int]

Gets the grouped shape item at the specified index in this collection.

Declaration
IShape this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IShape
Parameters
Type Name Description
int index

The index number for the object.

Examples
IShape rectangle = worksheet.Shapes.AddShape("rectangle", AutoShapeType.Rectangle, 20, 20, 80, 50);
IShape oval = worksheet.Shapes.AddShape("oval", AutoShapeType.Oval, 40, 40, 80, 50);
IShape groupShape = worksheet.Shapes.Range[new int[] {0, 1}].Group();
IShape firstShape = groupShape.GroupItems[0];

this[string]

Gets the grouped shape item whose name matches the specified value.

Declaration
IShape this[string name] { get; }
ReadOnly Default Property Item(name As String) As IShape
Parameters
Type Name Description
string name

The name for the object. This value identifies a shape within the grouped shape collection.

Property Value
Type Description
IShape

The IShape object with the specified name, or null if no matching shape is found.

Examples
IShape rectangle = worksheet.Shapes.AddShape("rectangle", AutoShapeType.Rectangle, 20, 20, 80, 50);
IShape oval = worksheet.Shapes.AddShape("oval", AutoShapeType.Oval, 40, 40, 80, 50);
IShape groupShape = worksheet.Shapes.Range[new int[] {0, 1}].Group();
IShape shape = groupShape.GroupItems["oval"];