Slide Transitions
Contents
[
Hide
]
To make it easier to understand, we have demonstrated the use of Aspose.Slides for .NET to manage simple slide transitions. Developers can not only apply different slide transition effects on the slides, but also customize the behavior of these transition effects.To create a simple slide transition effect, follow the steps below:
- Create an instance of Presentation class
- Apply a Slide Transition Type on the slide from one of the transition effects offered by Aspose.Slides for .NET through TransitionType enum
- Write the modified presentation file.
Example
string FilePath = @"..\..\..\Sample Files\";
string FileName = FilePath + "Managing Slides Transitions.pptx";
//Instantiate Presentation class that represents a presentation file
using (Presentation pres = new Presentation(FileName))
{
//Apply circle type transition on slide 1
pres.Slides[0].SlideShowTransition.Type = TransitionType.Circle;
//Apply comb type transition on slide 2
pres.Slides[1].SlideShowTransition.Type = TransitionType.Comb;
//Apply zoom type transition on slide 3
pres.Slides[2].SlideShowTransition.Type = TransitionType.Zoom;
//Write the presentation to disk
pres.Save(FileName, SaveFormat.Pptx);
}
Download Sample Code
Download Running Example
- [Codeplex](https://asposeslidesopenxml.codeplex.com/SourceControl/latest#Aspose.Slides Features missing in OpenXML/Managing Slides Transitions/)
- Github
- Code.MSDN
For more details, visit Managing Slides Transitions.