有powerpoint 演示吗?
我正在尝试使用 C# 创建一个 powerpoint 加载项。我发现在 MSDN 上找到有用的信息都非常困难。
我正在寻找一组 API 来检查状态。
目前,要更改幻灯片,我使用以下代码:
var presentation = Globals.ThisAddIn.Application.ActivePresentation;
presentation.SlideShowWindow.View.Next();
只要演示文稿正在运行,此代码就可以正常工作。如果你只是简单地编辑,那么它不起作用。我需要检查演示文稿是否正在运行。
如果有人能给我指出一个有用的 API,我就会被排序。我对 MSDN 文档在这方面的糟糕程度感到有点震惊。
I am trying to create a powerpoint add-in with c#. I'm finding it very difficult to even find useful information on MSDN.
I'm looking for a set of API's in order to check the status.
Currently, to change slide I'm using the following code:
var presentation = Globals.ThisAddIn.Application.ActivePresentation;
presentation.SlideShowWindow.View.Next();
This code works fine as long as the presentation is running. If your simply editing, then it does not work. I need to check if the presentation is running.
If someone could just point me to a useful API I will be sorted. I'm a little shocked at how poor the MSDN docs are on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请查看这篇文章如何使用 Visual C# .NET 处理 PowerPoint 事件。文章演示了如何注册与 Power Point 相关的不同活动。不完全是您正在寻找的内容,但它可以提供帮助
Take a look at this article How to handle PowerPoint events with Visual C# .NET. Article demonstrate how you can register for different events related to Power Point. Not exactly what you are looking for but it can help