Aspose.Slides - Manage Slide Transition

//Instantiate Presentation class that represents a presentation file
Presentation pres = new Presentation("data/presentation.pptx");

//Apply circle type transition on slide 1
pres.getSlides().get_Item(0).getSlideShowTransition().setType(TransitionType.Circle);

//Apply comb type transition on slide 2
pres.getSlides().get_Item(1).getSlideShowTransition().setType( TransitionType.Comb);

//Apply zoom type transition on slide 3
pres.getSlides().get_Item(2).getSlideShowTransition().setType(TransitionType.Zoom);

//===============================================
//Apply circle type transition on slide 4
pres.getSlides().get_Item(3).getSlideShowTransition().setType(TransitionType.Circle);
//Set the transition time of 3 seconds
presentation.getSlides().get_Item(3).getSlideShowTransition().setAdvanceOnClick( true);
presentation.getSlides().get_Item(3).getSlideShowTransition().setAdvanceAfterTime (3000);


Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Oct 1, 2014 at 6:55 AM by shoaibkhan, version 3