StopPreviousSound
IEffect.StopPreviousSound property
This attribute specifies if the animation effect stops the previous sound. Read/write Boolean.
public bool StopPreviousSound { get; set; }
Examples
[C#]
using (Presentation presentation = new Presentation("demo.pptx"))
{
// Get the first effect of the first slide.
IEffect firstSlideEffect = presentation.Slides[0].Timeline.MainSequence[0];
// Get the first effect of the second slide.
IEffect secondSlideEffect = presentation.Slides[1].Timeline.MainSequence[0];
if (firstSlideEffect.Sound != null)
{
// Change the second effect Enhancements/Sound to "Stop Previous Sound"
secondSlideEffect.StopPreviousSound = true;
}
}
See Also
- interface IEffect
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides