[]
Gets the number of IShape objects in this collection.
Use this property to get the current number of IShape objects in the IShapes collection for a worksheet.
int Count { get; }
ReadOnly Property Count As Integer
IShapes shapes = worksheet.Shapes;
shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
shapes.AddShape(AutoShapeType.Oval, 140, 20, 100, 60);
int count = shapes.Count;