AnimationSettings.SoundEffect Property

Returns a SoundEffect object that represents the sound to be played during the transition to the specified slide. REad-only.

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

Syntax

'Declaration
ReadOnly Property SoundEffect As SoundEffect
    Get
'Usage
Dim instance As AnimationSettings
Dim value As SoundEffect

value = instance.SoundEffect
SoundEffect SoundEffect { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.SoundEffect
SoundEffect

Examples

This example sets the file Bass.wav to be played whenever shape one on slide one in the active presentation is animated.

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

    .Animate = True

    .TextLevelEffect = ppAnimateByAllLevels

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

End With

See Also

Reference

AnimationSettings Interface

AnimationSettings Members

Microsoft.Office.Interop.PowerPoint Namespace