Indexing 在PowerPoint中选择“按索引幻灯片”?

Indexing 在PowerPoint中选择“按索引幻灯片”?,indexing,powerpoint,slide,Indexing,Powerpoint,Slide,如果我有所需幻灯片的索引,并且powerpoint文档已打开,我如何访问该幻灯片?(如果有帮助的话,它也是活动幻灯片) 我想做一些类似的事情 幻灯片currentSlide=ActivePresentation.SlideShowWindow.View.Slide 但是,在幻灯片放映模式之外,这不起作用 我试着寻找一些SlideAt(int-index)属性或其他东西,但没有成功 谢谢我想我已经弄明白了:需要强制转换它,因为_Index(int Index)返回一个对象ppt.Slide Sli

如果我有所需幻灯片的索引,并且powerpoint文档已打开,我如何访问该幻灯片?(如果有帮助的话,它也是活动幻灯片)

我想做一些类似的事情

幻灯片currentSlide=ActivePresentation.SlideShowWindow.View.Slide

但是,在幻灯片放映模式之外,这不起作用

我试着寻找一些SlideAt(int-index)属性或其他东西,但没有成功


谢谢

我想我已经弄明白了:需要强制转换它,因为_Index(int Index)返回一个对象ppt.Slide Slide=(ppt.Slide)ActivePresentation.Slides._Index(Index);或者,我发现您可以将其引用为ActivePresentation.Slides[index],这似乎是最直接的方法。作为一个警告,请记住检查index=0,这将抛出一个错误,当您进行健全性检查时,您需要确保该索引