Share via


PlaySettings.PauseAnimation Property

Determines whether the slide show pauses until the specified media clip is finished playing. Read/write.

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

Syntax

'Declaration
Property PauseAnimation As MsoTriState
    Get
    Set
'Usage
Dim instance As PlaySettings
Dim value As MsoTriState

value = instance.PauseAnimation

instance.PauseAnimation = value
MsoTriState PauseAnimation { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

For the PauseAnimation property setting to take effect, the PlayOnEntry property of the specified shape must be set to msoTrue.

The value of the PauseAnimation property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The slide show continues while the media clip plays in the background.

msoTrue

The slide show pauses until the specified media clip is finished playing.

Examples

This example specifies that shape three on slide one in the active presentation will be played automatically when it is animated and that the slide show won't continue while the movie is playing in the background. Shape three must be a sound or movie object.

Set OLEobj = ActivePresentation.Slides(1).Shapes(3)

With OLEobj.AnimationSettings.PlaySettings

    .PlayOnEntry = msoTrue

    .PauseAnimation= msoTrue

End With

See Also

Reference

PlaySettings Interface

PlaySettings Members

Microsoft.Office.Interop.PowerPoint Namespace