[]
Gets the grouped shape item at the specified index in this collection.
IShape this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IShape
| Type | Name | Description |
|---|---|---|
| int | index | The index number for the object. |
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];
Gets the grouped shape item whose name matches the specified value.
IShape this[string name] { get; }
ReadOnly Default Property Item(name As String) As IShape
| Type | Name | Description |
|---|---|---|
| string | name | The name for the object. This value identifies a shape within the grouped shape collection. |
| Type | Description |
|---|---|
| IShape | The IShape object with the specified name, or null if no matching shape is found. |
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"];