ShapeRange.IncrementRotation Method
Changes the rotation of the specified shape range around the z-axis by the specified number of degrees. Use the Rotation property to set the absolute rotation of the shape range.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub IncrementRotation ( _
Increment As Single _
)
'Usage
Dim instance As ShapeRange
Dim Increment As Single
instance.IncrementRotation(Increment)
void IncrementRotation(
float Increment
)
Parameters
- Increment
Type: System.Single
Specifies how far the shape range is to be rotated horizontally, in degrees. A positive value rotates the shape range clockwise; a negative value rotates it counterclockwise.
Remarks
To rotate a three-dimensional shape range around the x-axis or the y-axis, use the IncrementRotationX(Single) method or the IncrementRotationY(Single) method.
Examples
This example duplicates shape one on myDocument, sets the fill for the duplicate, moves it 70 points to the right and 50 points up, and rotates it 30 degrees clockwise.
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(1).Duplicate
.Fill.PresetTextured msoTextureGranite
.IncrementLeft 70
.IncrementTop -50
.IncrementRotation30
End With