检测从C#在PowerPoint中的形状事件 [英] detect events on powerpoint shapes from C#

查看:385
本文介绍了检测从C#在PowerPoint中的形状事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是有可能发现它发生在一个PowerPoint形状的事件,如,让说,箭头???

is it possible to detect the events which happen on a powerpoint shape like, let say, an arrow???

到现在为止,我已经找到了唯一的可能性selecteditemchanged,beforerightclick和beforedoubleclick,但无法找到一种方法来检测其他像鼠标悬停,resizeend,或positionchanged。

Until now, I've found the only possibilities are selecteditemchanged, beforerightclick and beforedoubleclick, but can't find a way to detect others like mouseover, resizeend, or positionchanged.

我能够检测一个Forms.CommandButton.1 ​​OLE对象的click事件,但它仅适用于PPT presentation模式,而不是在PPT设计模式。

I was able to detect the click event on a Forms.CommandButton.1 ole object, but it works only on ppt presentation mode, not in ppt design mode.

我的主要目标是嵌入一个winform -or一个wincontrol-成PPT幻灯片(不但超过了幻灯片显示它,但将其嵌入到幻灯片中,因此它可以在幻灯片指数中查看,并且用户可以玩随着它像任何其他形状。例如,男性就大胆的,大写,变回颜色等),但我无法找到文档和一个我发现不能按预期工作:

My main goal is to embed a winform -or a wincontrol- into a ppt slide (not only show it over the slide, but embed it into the slide, so it can be viewed in the slide index and the user can play with it like any other shape. In example, male it bold, uppercase, change back color, etc), but I can't find documentation, and the one I found is not working as expected:

这一个是有关的SmartArt,但似乎没有事件
<一href="http://blogs.msdn.com/b/andreww/archive/2008/11/24/using-managed-controls-as-activex-controls.aspx"相对=nofollow>这一个是关于使用网络控制,OLEOBJECT,但对我来说这是调用C​​OM时的错误错误

所以,如果它不是可以将PPT幻灯片中嵌入网络的控制,至少是可以检测的形状???

So, if it's not possible to embed Net controls within a ppt slide, is at least possible to detect key and mouse events on shapes???

在此先感谢

推荐答案

这一个可以帮助你:

检测形状的事件

这篇关于检测从C#在PowerPoint中的形状事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆