.net 如何识别.pptx(MS powerpoint)文件的页码是否打开/关闭?

.net 如何识别.pptx(MS powerpoint)文件的页码是否打开/关闭?,.net,c#-4.0,powerpoint-2007,.net,C# 4.0,Powerpoint 2007,我想知道是否有办法确定MS Powerpoint文件的pagenumber属性是启用还是禁用的 到目前为止,我的研究让我想到了这一点 在这里,我们需要阅读演示文稿的幻灯片,以便使用 HeadersFooters.SlideNumber.Visible属性 是否有一种全球性的方法可以通过将演示作为一个整体来识别这一点 比如,Presentation.SlideNumber.Visible PS:对于.ppt文件也有这样做的方法吗 谢谢 亚森杜 我还没有测试过它,但它表示您要查看: Presenta

我想知道是否有办法确定MS Powerpoint文件的pagenumber属性是启用还是禁用的

到目前为止,我的研究让我想到了这一点

在这里,我们需要阅读演示文稿的幻灯片,以便使用 HeadersFooters.SlideNumber.Visible属性

是否有一种全球性的方法可以通过将演示作为一个整体来识别这一点

比如,Presentation.SlideNumber.Visible

PS:对于.ppt文件也有这样做的方法吗

谢谢
亚森杜

我还没有测试过它,但它表示您要查看:
Presentation.SlideMaster.HeaderFooters(i).SlideNumber.Visible

每张幻灯片的页码可以是可见的,也可以是不可见的

Dim oSl as Slide
For Each oSl in ActivePresentation.Slides
If oSl.HeadersFooters.SlideNumber.Visible Then
  Debug.Print "Your slides, if not days, are numbered"
Else
  Debug.Print "Slides without number.  This one, anyhow."
End If