Share via


AnimationSettings.AdvanceTime Property

Returns or sets the amount of time, in seconds, after which the specified shape will become animated. Read/write.

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

Syntax

'Declaration
Property AdvanceTime As Single
    Get
    Set
'Usage
Dim instance As AnimationSettings
Dim value As Single

value = instance.AdvanceTime

instance.AdvanceTime = value
float AdvanceTime { get; set; }

Property Value

Type: System.Single
Single

Remarks

The specified slide animation won't start automatically after the amount of time you've specified unless the AdvanceMode property of the animation is set to ppAdvanceOnTime.

Examples

This example sets shape two on slide one in the active presentation to become animated automatically after five seconds.

With ActivePresentation.Slides(1).Shapes(2).AnimationSettings

    .AdvanceMode = ppAdvanceOnTime

    .AdvanceTime = 5

    .TextLevelEffect = ppAnimateByAllLevels

    .Animate = True

End With

See Also

Reference

AnimationSettings Interface

AnimationSettings Members

Microsoft.Office.Interop.PowerPoint Namespace