Places the shape into the specified position in the shape collection of the group/page. The repositioned shape is specified by its ID (the ID property). The position is specified by the ID of the shape, to whose position the repositioned shape will be placed.
Applies to: Page object, Shape object
[[Let] booleanRet =] object.ReorderShapeByID ( shapeIDFrom, shapeIDTo ) |
The ReorderShapeByID method syntax has these parts:
Part | Description |
object | Required. An expression that returns an object in the Applies to list. |
shapeIDFrom | Required. An expression that returns a Long value. The ID (ID property) of the service shape to be repositioned. |
shapeIDTo | Required. An expression that returns a Long value. The ID (ID property) of the shape to whose position the shape specified by shapeIDFrom will be placed. |
booleanRet | Optional. A Boolean type variable. |
If there is no shape with the shapeIDFrom or shapeIDTo ID in the collection, the ReorderShapeByID method doesn't reposition the shape and returns False. If repositioning has been successful, the method returns True.
See Also |
ID property, RemoveAllShapes method, RemoveShape method, RemoveShapeByID method, ReorderShape method, Shape method, ShapeByID method, ShapesNum method |