NewAnimation
PresentationAnimationsGenerator.NewAnimation событие
Событие представляет собой новую анимацию, которая была сгенерирована.
public event Action<IPresentationAnimationPlayer> NewAnimation;
Примеры
[C#]
using (Presentation presentation = new Presentation("SimpleAnimations.pptx"))
{
using (var animationsGenerator = new PresentationAnimationsGenerator(presentation.SlideSize.Size.ToSize()))
{
animationsGenerator.NewAnimation += animationPlayer =>
{
Console.WriteLine($"Общая продолжительность анимации: {animationPlayer.Duration}");
};
animationsGenerator.Run(presentation.Slides);
}
}
Смотрите Также
- interface IPresentationAnimationPlayer
- class PresentationAnimationsGenerator
- namespace Aspose.Slides.Export
- assembly Aspose.Slides