[]
Gets the IShape 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 zero-based index number for the object. |
IShapes shapes = worksheet.Shapes;
shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IShape shape = shapes[0];
shape.Name = "Rectangle 1";
Gets the IShape with the specified name from this collection.
IShape this[string name] { get; }
ReadOnly Default Property Item(name As String) As IShape
| Type | Name | Description |
|---|---|---|
| string | name | Required string. The name for the object. |
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
shape.Name = "SalesBox";
IShape namedShape = worksheet.Shapes["SalesBox"];