NewAnimation

PresentationAnimationsGenerator.NewAnimation event

An event represents that a new animation was generated.

public event Action<IPresentationAnimationPlayer> NewAnimation;

Examples

[C#]
using (Presentation presentation = new Presentation("SimpleAnimations.pptx"))
{
    using (var animationsGenerator = new PresentationAnimationsGenerator(presentation.SlideSize.Size.ToSize()))
    {
        animationsGenerator.NewAnimation += animationPlayer =>
        {
            Console.WriteLine($"Animation total duration: {animationPlayer.Duration}");
      };
        
        animationsGenerator.Run(presentation.Slides);
    }
}

See Also