ThreeDFormat.ResetRotation Method
Resets the extrusion rotation around the x-axis and the y-axis to 0 (zero) so that the front of the extrusion faces forward. This method doesn't reset the rotation around the z-axis.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub ResetRotation
'Usage
Dim instance As ThreeDFormat
instance.ResetRotation()
void ResetRotation()
Remarks
To set the extrusion rotation around the x-axis and the y-axis to anything other than 0 (zero), use the RotationX and RotationY properties of the ThreeDFormat object. To set the extrusion rotation around the z-axis, use the Rotation property of the CanvasShapes object that represents the extruded shape.
Examples
This example resets the rotation around the x-axis and the y-axis to 0 (zero) for the extrusion of shape one on myDocument.
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes(1).ThreeD.ResetRotation