PpSoundEffectType Enumeration

Represents the sound effect that accompanies an animation or slide transition in a slide show.

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

Syntax

'Declaration
Public Enumeration PpSoundEffectType
'Usage
Dim instance As PpSoundEffectType
public enum PpSoundEffectType

Members

Member name Description
ppSoundEffectsMixed
ppSoundNone
ppSoundStopPrevious
ppSoundFile

Examples

Use the SoundEffect property of the AnimationSettings object to return the SoundEffect object that represents the sound effect that accompanies an animation. The following example specifies that the animation of the title on slide one in the active presentation be accompanied by the sound in the Bass.wav file.

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

    .TextLevelEffect = ppAnimateByAllLevels

    .SoundEffect.ImportFromFile "c:\sndsys\bass.wav"

End With

Use the SoundEffect property of the SlideShowTransition object to return the SoundEffect object that represents the sound effect that accompanies a slide transition.

The following example specifies that the transition to slide one in the active presentation be accompanied by the sound in the Bass.wav file.

ActivePresentation.Slides(1).SlideShowTransition.SoundEffect _

    .ImportFromFile "c:\sndsys\bass.wav"

See Also

Reference

Microsoft.Office.Interop.PowerPoint Namespace