Adds a predefined shape to the collection with the specified bounds. Syntax Parameters shapeType The type of shape to add to the collection.worksheet The Worksheet to which the boundsInTwips relate.boundsInTwips The bounds of the shape on the worksheet in twips (1/20th of a point). Return Value A WorksheetShape-de...
Adds a predefined shape to the collection with the specified anchors. Syntax Parameters shapeType The type of shape to add to the collection.topLeftCornerCell The cell where the top-left corner of the shape resides.topLeftCornerPosition The position in the topLeftCornerCell of the shapes top-left corner, expressed...
Adds a shape to the collection. Syntax Parameters shape The shape to add to the collection. Exceptions Exception Description System.ArgumentNullException shape is null. System.InvalidOperationException shape has already been added to a worksheet or group. System.InvalidOperationException shape does not have the To...
Adds a predefined shape to the collection with the specified bounds. Overload List
Clears all shapes from the collection. Syntax
Determines whether a shape is in the collection. Syntax Parameters shape The shape to locate in the collection. Return Value True if the shape is found; False otherwise.
Gets the number of shapes in the collection. Syntax Property Value The number of shapes in the collection.
Gets the shape at the specified index in the collection. Syntax Parameters index The zero-based index of the shape to get. Property Value The shape at the specified index. Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count.
Removes the specified shape from the collection. Syntax Parameters shape The shape to remove from the collection. Return Value True if the shape was successfully removed from the collection; False if the shape did not exist in the collection.
Removes the shape at the specified index from the collection. Syntax Parameters index The index of the shape to remove from the collection. Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count.