public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Slides_Presentations_CRUD();
// ExStart:AccessSlidebyID
// Create an instance of Presentation class
Presentation presentation = new Presentation(dataDir + "AccessSlides.pptx");
// Getting Slide ID
uint id = presentation.Slides[0].SlideId;
// ExEnd:AccessSlidebyID
// Accessing Slide by ID
IBaseSlide slide = presentation.GetSlideById(id);
}
}