Partager via


AnimationBehaviors.Add Method (PowerPoint)

Returns an AnimationBehavior object that represents a new animation behavior.

Syntax

expression .Add(Type, Index)

expression A variable that represents an AnimationBehaviors object.

Parameters

Name

Required/Optional

Data Type

Description

Type

Required

MsoAnimType

The type of the animation behavior.

Index

Optional

Long

The position of the animation behaviorce 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

AnimationBehavior

Remarks

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

msoAnimTypeColor

msoAnimTypeMixed

msoAnimTypeMotion

msoAnimTypeNone

msoAnimTypeProperty

msoAnimTypeRotation

msoAnimTypeScale

See Also

Concepts

AnimationBehaviors Object

AnimationBehaviors Object Members