NewAnimation

Événement PresentationAnimationsGenerator.NewAnimation

Un événement représente qu’une nouvelle animation a été générée.

public event Action<IPresentationAnimationPlayer> NewAnimation;

Exemples

[C#]
using (Presentation presentation = new Presentation("SimpleAnimations.pptx"))
{
    using (var animationsGenerator = new PresentationAnimationsGenerator(presentation.SlideSize.Size.ToSize()))
    {
        animationsGenerator.NewAnimation += animationPlayer =>
        {
            Console.WriteLine($"Durée totale de l'animation : {animationPlayer.Duration}");
      };
        
        animationsGenerator.Run(presentation.Slides);
    }
}

Voir aussi