NewAnimation

PresentationAnimationsGenerator.NewAnimation Ereignis

Ein Ereignis stellt dar, dass eine neue Animation generiert wurde.

public event Action<IPresentationAnimationPlayer> NewAnimation;

Beispiele

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

Siehe Auch