StopPreviousSound
Effect.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)
{
// 将第二个效果的 Enhancements/Sound 更改为“停止之前的声音”
secondSlideEffect.StopPreviousSound = true;
}
}
另请参见
- class Effect
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides