Shape Method

Returns an instance of the Shape object, that corresponds to a shape with the specified index in the shape collection of the group/page.

Applies to: Page object, Shape object

Syntax

[[Set] shapeRet =] object.Shape ( index )

The Shape method syntax has these parts:

Part Description
object

Required. An expression that returns an instance of an object from the Applies to list.

index Required. An expression that returns a Long value. The index of the shape in the shape collection of the group/page.
shapeRet Optional. A Shape type variable.

Remarks

If index is less than 1 or greater than the number of shapes in the group/page, the Shape method returns Nothing. Use the ShapesNum method to find out the number of shapes in the group/page.

 

See Also

RemoveAllShapes method, RemoveShape method, RemoveShapeByID method, ReorderShape method, ReorderShapeByID method, ShapeByID method, ShapesNum method