C#-Visio中是否有任何OnShapeMoved或OnShapeDeleted事件? [英] C# - Is there any OnShapeMoved or OnShapeDeleted event in Visio?

查看:95
本文介绍了C#-Visio中是否有任何OnShapeMoved或OnShapeDeleted事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为标题或问题很清楚.我看到了一些有关EventSink的信息,但发现它很难使用.有提示吗?

I think the title or the question is clear enough. I saw something about the EventSink, but I found it difficult to use. Any hint?

推荐答案

我相信您必须实现EvenSink才能访问"ShapesDeleted",即

I believe that you have to implement EvenSink to get access to "ShapesDeleted", i.e.

 (short)Microsoft.Office.Interop.Visio.VisEventCodes.visEvtCodeShapeDelete

如果您正在寻找事件"BeforeShapeDelete"而不是"after" ShapeDelete;),上面的代码将为您提供帮助

the code above will help you if you are looking for the event "BeforeShapeDelete" not the "after"ShapeDelete ;)

这篇关于C#-Visio中是否有任何OnShapeMoved或OnShapeDeleted事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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