Share via


AnimationBehavior.MotionEffect Property

Returns a MotionEffect object that represents the properties of a motion animation.

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

Syntax

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

value = instance.MotionEffect
MotionEffect MotionEffect { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.MotionEffect
MotionEffect

Examples

This example adds a new motion behavior to the first slide's main sequence that moves the specified animation sequence from one side of the page to the shape's original position.

Sub NewMotion()

    With ActivePresentation.Slides(1).TimeLine.MainSequence(1) _

            .Behaviors.Add(msoAnimTypeMotion).MotionEffect.FromX = 100

        .FromY = 100

        .ToX = 0

        .ToY = 0

    End With

End Sub

See Also

Reference

AnimationBehavior Interface

AnimationBehavior Members

Microsoft.Office.Interop.PowerPoint Namespace