public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Slides_Presentations_Transitions();
// ExStart:ManagSimpleSlideTransitions
// Instantiate Presentation class to load the source presentation file
using (Presentation presentation = new Presentation(dataDir + "AccessSlides.pptx"))
{
// Apply circle type transition on slide 1
presentation.Slides[0].SlideShowTransition.Type = TransitionType.Circle;
// Apply comb type transition on slide 2
presentation.Slides[1].SlideShowTransition.Type = TransitionType.Comb;
// ExEnd:ManagSimpleSlideTransitions
// Write the presentation to disk
presentation.Save(dataDir + "SampleTransition_out.pptx", SaveFormat.Pptx);
}
}
}