Share via


AnimationBehavior.RotationEffect Property

Returns a RotationEffect object for an animation behavior. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property RotationEffect As RotationEffect
    Get
'Usage
Dim instance As AnimationBehavior
Dim value As RotationEffect

value = instance.RotationEffect
RotationEffect RotationEffect { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.RotationEffect
RotationEffect

Examples

The following example adds a new shape to the first slide and sets the rotation animation behavior.

Sub AddRotation()



    Dim shpNew As Shape

    Dim effNew As Effect

    Dim aniNew As AnimationBehavior



    Set shpNew = ActivePresentation.Slides(1).Shapes _

        .AddShape(Type:=msoShape5pointStar, Left:=0, _

        Top:=0, Width:=100, Height:=100)

    Set effNew = ActivePresentation.Slides(1).TimeLine.MainSequence _

        .AddEffect(Shape:=shpNew, effectId:=msoAnimEffectCustom)

    Set aniNew = effNew.Behaviors.Add(msoAnimTypeRotation)



    With aniNew.RotationEffect'Rotate 270 degrees from current position

        .By = 270

    End With



End Sub

See Also

Reference

AnimationBehavior Interface

AnimationBehavior Members

Microsoft.Office.Interop.PowerPoint Namespace