Share via


IncrementRotationX Method [Publisher 2003 VBA Language Reference]

Changes the rotation of the specified shape around the x-axis (horizontal) by the specified number of degrees.

expression.IncrementRotationX(Increment)

expression Required. An expression that returns one of the objects in the Applies To list.

Increment  Required Single. Specifies by how many degrees to rotate the shape around the x-axis. Can be a value from – 90 through 90. A positive value tilts the shape up; a negative value tilts it down.

Remarks

Use the RotationX property to set the absolute rotation of the shape around the x-axis.

You cannot adjust the rotation around the x-axis of the specified shape past the upper or lower limit for the RotationX property (90 degrees to – 90 degrees). For example, if the RotationX property is initially set to 80 and you specify 40 for the Increment argument, the resulting rotation will be 90 (the upper limit for the RotationX property) instead of 120.

To change the rotation of a shape around the y-axis (vertical), use the IncrementRotationY method. To change the rotation around the z-axis (extends outward from the plane of the publication), use the IncrementRotation method.

Example

This example tilts the first shape in the active publication up 10 degrees. The shape must be an extruded shape for you to see the effect of this code.

ActiveDocument.Pages(1).Shapes(1).ThreeD _
    .IncrementRotationX Increment:=10

Applies to | ThreeDFormat Object