Share via


ShapeRange.IncrementRotation Method

Changes the rotation of the specified shape around the z-axis by the specified number of degrees. Use the Rotation property to set the absolute rotation of the shape.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.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

    Required Single. Specifies how far the shape is to be rotated horizontally in degrees. A positive value rotates the shape clockwise; a negative value rotates it counterclockwise.

Remarks

To rotate a three-dimensional shape around the x-axis or the y-axis, use the IncrementRotationX method or the IncrementRotationY method.

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.Excel Namespace