PresentationAnimationsGenerator
Clase PresentationAnimationsGenerator
Representa un generador de las animaciones en la Presentation.
public class PresentationAnimationsGenerator : IDisposable
Constructores
Propiedades
| Nombre | Descripción |
|---|
| DefaultDelay { get; set; } | Obtiene o establece el tiempo de retraso predeterminado [ms]. |
| ExportedSlides { get; } | Obtiene el número de la cantidad de diapositivas exportadas. |
| IncludeHiddenSlides { get; set; } | Obtiene o establece si se deben incluir las diapositivas ocultas. |
Métodos
| Nombre | Descripción |
|---|
| Dispose() | Libera la instancia del PresentationAnimationsGenerator. |
| Run(IEnumerable<ISlide>) | Ejecuta la generación de eventos de animación para cada diapositiva. |
| Run(IEnumerable<ISlide>, int, FrameTickHandler) | Ejecuta la generación de eventos de animación para cada diapositiva. |
Campos
| Nombre | Descripción |
|---|
| readonly FrameSize | Obtiene el tamaño del marco. |
Eventos
| Nombre | Descripción |
|---|
| event NewAnimation | Un evento que representa que se generó una nueva animación. |
Ejemplos
[C#]
using (Presentation presentation = new Presentation("animated.pptx"))
{
using (var animationsGenerator = new PresentationAnimationsGenerator(presentation))
using (var player = new PresentationPlayer(animationsGenerator, 33))
{
player.FrameTick += (sender, args) =>
{
args.GetFrame().Save($"frame_{sender.FrameIndex}.png");
};
animationsGenerator.Run(presentation.Slides);
}
}
Véase También