PowerPoint是演示文稿制作软件吗?

3

我希望能够使用C#创建一个powerpoint插件。我发现在MSDN上很难找到有用的信息。

我正在寻找一组API以检查状态。

目前,我正在使用以下代码来更改幻灯片:

var presentation = Globals.ThisAddIn.Application.ActivePresentation;

presentation.SlideShowWindow.View.Next();                       

只要演示文稿正在运行,这段代码就可以正常工作。如果你只是在编辑,那么它就无法工作。我需要检查演示文稿是否正在运行。

如果有人可以指向一个有用的API,那就太好了。我对MSDN文档的质量感到有些震惊。

2个回答

2
If SlideShowWindows.Count = 0 Then
  ' There are no slide shows in progress
Else
  ' there's a slide show a-showing
End if

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接