Share via


AnimationBehavior Object

AnimationBehavior Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

AnimationBehaviors
Aa158984.parchild(en-us,office.10).gifAnimationBehavior
Aa158984.space(en-us,office.10).gifAa158984.parchild(en-us,office.10).gif

Represents the behavior of an animation effect, the main animation sequence, or an interactive animation sequence. The AnimationBehavior object is a member of the AnimationBehaviors collection.

Using the AnimationBehavior object

Use Behaviors(index), where index is the number of the behavior in the sequence of behaviors, to return a single AnimationBehavior object. The following example sets the positions of the a rotation's starting and ending points. This example assumes that the first behavior for the main animation sequence is a RotationEffect object.

  Sub Change()
    With ActivePresentation.Slides(1).TimeLine.MainSequence(1) _
            .Behaviors(1).RotationEffect
        .From = 1
        .To = 180
    End With
End Sub