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