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);
    }
}

Смотрите Также