RemoveAllShapes Method

Removes all shapes that belong to the page/group.

Applies to: Page object, Shape object

Syntax

object.RemoveAllShapes ()

The RemoveAllShapes method syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.

Remarks

The RemoveAllShapes method attempts to remove all shapes of the page/group. Note, that you can't delete the shape which Basic script is being executed at the moment. To find out whether all shapes have been removed, use the ShapesNum method which returns the number of shapes, that belong to the page/group.

 

See Also

RemoveAllServObj method, RemoveShape method, RemoveShapeByID method, ShapesNum method