StopPreviousSound
IEffect.StopPreviousSound 属性
此属性指定动画效果是否停止先前的声音。可读写布尔值。
public bool StopPreviousSound { get; set; }
示例
[C#]
using (Presentation presentation = new Presentation("demo.pptx"))
{
// 获取第一张幻灯片的第一个效果。
IEffect firstSlideEffect = presentation.Slides[0].Timeline.MainSequence[0];
// 获取第二张幻灯片的第一个效果。
IEffect secondSlideEffect = presentation.Slides[1].Timeline.MainSequence[0];
if (firstSlideEffect.Sound != null)
{
// 将第二个效果的增强/声音更改为“停止先前的声音”
secondSlideEffect.StopPreviousSound = true;
}
}
另请参见
- 接口 IEffect
- 命名空间 Aspose.Slides.Animation
- 程序集 Aspose.Slides