Skip to content

Latest commit

 

History

History
85 lines (45 loc) · 1.96 KB

PowerPoint.ThreeDFormat.RotationX.md

File metadata and controls

85 lines (45 loc) · 1.96 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ThreeDFormat.RotationX property (PowerPoint)
vbapp10.chm557016
vbapp10.chm557016
PowerPoint.ThreeDFormat.RotationX
8c434ef8-1364-5989-71da-e96ddfbd15ac
06/08/2017
medium

ThreeDFormat.RotationX property (PowerPoint)

Returns or sets the rotation of the extruded shape around the x-axis, in degrees. Read/write.

Syntax

expression. RotationX

expression A variable that represents a ThreeDFormat object.

Return value

Single

Remarks

Can be a value from - 90 through 90. A positive value indicates upward rotation; a negative value indicates downward rotation.

To set the rotation of the extruded shape around the y-axis, use the RotationY property of the ThreeDFormat object.

To set the rotation of the extruded shape around the z-axis, use the Rotation property of the Shape object.

To change the direction of the extrusion's sweep path without rotating the front face of the extrusion, use the SetExtrusionDirection method.

Example

This example adds three identical extruded ovals to myDocument and sets their rotation around the x-axis to - 30, 0, and 30 degrees, respectively.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes

    With .AddShape(msoShapeOval, 30, 60, 50, 25).ThreeD

        .Visible = True

        .RotationX = -30

    End With

    With .AddShape(msoShapeOval, 90, 60, 50, 25).ThreeD

        .Visible = True

        .RotationX = 0

    End With

    With .AddShape(msoShapeOval, 150, 60, 50, 25).ThreeD

        .Visible = True

        .RotationX = 30

    End With

End With

See also

ThreeDFormat Object

[!includeSupport and feedback]