[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.Item

this Property

this[int]

Gets the IShape 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 zero-based index number for the object.

Examples
IShapes shapes = worksheet.Shapes;
shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IShape shape = shapes[0];
shape.Name = "Rectangle 1";

this[string]

Gets the IShape with the specified name from this collection.

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

Required string. The name for the object.

Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
shape.Name = "SalesBox";
IShape namedShape = worksheet.Shapes["SalesBox"];