ActionSetting 对象:返回 SoundEffect 对象,该对象代表单击指定形状或鼠标移过该形状时播放的声音。如果运行幻灯片放映时无法听到为该形状设置的声音,请确保将 TextLevelEffect 属性设为非 ppAnimateLevelNone 的值,并且将 Animate 属性设置为 True。
AnimationSettings 和 EffectInformation 对象:返回 SoundEffect 对象,该对象代表指定形状的动画中播放的声音。
SlideShowTransition 对象:返回一个 SoundEffect 对象,该对象代表转换到指定幻灯片时播放的声音。
expression.SoundEffect
expression 必选。该表达式返回“应用于”列表中的对象之一。
本示例设置在当前演示文稿第一张幻灯片第一个形状演示动画时播放文件 Bass.wav。
With ActivePresentation.Slides(1).Shapes(1).AnimationSettings
.Animate = True
.TextLevelEffect = ppAnimateByAllLevels
.SoundEffect.ImportFromFile "c:\bass.wav"
End With