ShapeRange.IncrementRotation method (Publisher)
Changes the rotation of the specified shape around the z-axis (extends outward from the plane of the publication) by the specified number of degrees.
Syntax
expression.IncrementRotation (Increment)
expression A variable that represents a ShapeRange object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Increment | Required | Single | Specifies how far the shape is to be rotated around the z-axis, in degrees. A positive value rotates the shape clockwise; a negative value rotates it counterclockwise. Valid values are between -360 and 360. |
Remarks
Use the Rotation property to set the absolute rotation of the shape.
To rotate a three-dimensional shape around the x-axis (horizontal) or the y-axis (vertical), use the IncrementRotationX method or the IncrementRotationY method of the ThreeDFormat object, respectively.
Example
This example duplicates the first shape on the active publication, sets the fill for the duplicate, moves it 70 points to the right and 50 points up, and rotates it 30 degrees clockwise.
With ActiveDocument.Pages(1).Shapes(1).Duplicate
.Fill.PresetTextured PresetTexture:=msoTextureGranite
.IncrementLeft Increment:=70
.IncrementTop Increment:=-50
.IncrementRotation Increment:=30
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.