Version

Search Results

Add(PredefinedShapeType,Worksheet,Rectangle) Method

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...

Add(PredefinedShapeType,WorksheetCell,PointF,WorksheetCell,PointF) Method

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...

Add(WorksheetShape) Method

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...

Add Method (WorksheetShapeCollection)

Adds a predefined shape to the collection with the specified bounds. Overload List

Clear Method (WorksheetShapeCollection)

Clears all shapes from the collection. Syntax

Contains Method (WorksheetShapeCollection)

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.

Count Property (WorksheetShapeCollection)

Gets the number of shapes in the collection. Syntax Property Value The number of shapes in the collection.

Item Property (WorksheetShapeCollection)

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.

Remove Method (WorksheetShapeCollection)

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.

RemoveAt Method (WorksheetShapeCollection)

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.