Partager via


AnimationSettings.AnimationOrder Property (PowerPoint)

Returns or sets an integer that represents the position of the specified shape within the collection of shapes to be animated. Read/write.

Syntax

expression .AnimationOrder

expression A variable that represents an AnimationSettings object.

Return Value

Long

Remarks

You won't see effects of setting this property unless the specified shape gets animated. For a shape to be animated, the TextLevelEffect property of the AnimationSettings object for the shape must be set to something other than ppAnimateLevelNone and the Animate property must be set to True.

Note

Setting the AnimationOrder property to a value that is less than the greatest existing AnimationOrder property value can shift the animation order.

Example

This example specifies that shape two on slide two in the active presentation be animated second.

ActivePresentation.Slides(2).Shapes(2) _

    .AnimationSettings.AnimationOrder = 2

See Also

Concepts

AnimationSettings Object

AnimationSettings Object Members