我有多个母版幻灯片的 powerpoint 演示文稿。我想使用 InterOp API 和 VB.net 在母版视图中访问当前活动的 powerpoint 演示文稿幻灯片母版。当我尝试访问活动幻灯片母版时,它总是选择第一张幻灯片母版而不是活动母版幻灯片。我尝试使用幻灯片,我可以访问当前幻灯片。但在 slideMaster 视图中我找不到访问指定幻灯片母版的方法。
If(ActiveWindow.ActivePane.ViewType = PowerPoint.PpViewType.ppViewSlideMaster) Then 'condition
ActivePresentation.Slides(2) 'this way I can access specified slide.
ActivePresentation.SlideMaster