ShapeRange.IncrementRotation Method

Publisher Developer Reference

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

Visual Basic for Applications
  With ActiveDocument.Pages(1).Shapes(1).Duplicate
    .Fill.PresetTextured PresetTexture:=msoTextureGranite
    .IncrementLeft Increment:=70
    .IncrementTop Increment:=-50
    .IncrementRotation Increment:=30
End With

See Also