public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Slides_Presentations_CRUD();
// Instantiate Presentation class to load the source presentation file
using (Presentation srcPres = new Presentation(dataDir + "CloneAtEndOfAnotherSpecificPosition.pptx"))
{
// Instantiate Presentation class for destination presentation (where slide is to be cloned)
using (Presentation destPres = new Presentation())
{
// Clone the desired slide from the source presentation to the end of the collection of slides in destination presentation
ISlideCollection slds = destPres.Slides;
// Clone the desired slide from the source presentation to the specified position in destination presentation
slds.InsertClone(1, srcPres.Slides[1]);
// Write the destination presentation to disk
destPres.Save(dataDir + "Aspose1_out.pptx", SaveFormat.Pptx);
}
}
}
}