Partager via


AnimationBehaviors.Add Method

Returns an AnimationBehavior object that represents a new animation behavior.

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

Syntax

'Declaration
Function Add ( _
    Type As MsoAnimType, _
    Index As Integer _
) As AnimationBehavior
'Usage
Dim instance As AnimationBehaviors
Dim Type As MsoAnimType
Dim Index As Integer
Dim returnValue As AnimationBehavior

returnValue = instance.Add(Type, Index)
AnimationBehavior Add(
    MsoAnimType Type,
    int Index
)

Parameters

  • Index
    Type: System.Int32
    The position of the animation behavior in relation to other animation behaviors. The default value is -1, which means that if you omit the Index parameter, the new animation behavior is added at the end of the existing animation behaviors.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.AnimationBehavior

Remarks

The Type parameter value can be one of these MsoAnimType constants.

msoAnimTypeColor

msoAnimTypeMixed

msoAnimTypeMotion

msoAnimTypeNone

msoAnimTypeProperty

msoAnimTypeRotation

msoAnimTypeScale

See Also

Reference

AnimationBehaviors Interface

AnimationBehaviors Members

Microsoft.Office.Interop.PowerPoint Namespace