public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Slides_Presentations_Transitions();
// Instantiate Presentation class that represents a presentation file
using (Presentation pres = new Presentation(dataDir + "SimpleSlideTransitions.pptx"))
{
// 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;
// Write the presentation to disk
pres.Save(dataDir + "SampleTransition_out.pptx", SaveFormat.Pptx);
}
}
}