Share via


AnimationBehavior Interface

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.

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

Syntax

'Declaration
<GuidAttribute("914934E4-5A91-11CF-8700-00AA0060263B")> _
Public Interface AnimationBehavior
'Usage
Dim instance As AnimationBehavior
[GuidAttribute("914934E4-5A91-11CF-8700-00AA0060263B")]
public interface AnimationBehavior

Examples

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

See Also

Reference

AnimationBehavior Members

Microsoft.Office.Interop.PowerPoint Namespace