开发者

VSTO Visio 2010 Handling MarkerEvent

开发者 https://www.devze.com 2023-02-15 17:01 出处:网络
I\'m trying to handle the MarkerEvent, however I get a compliation error saying my method doesn\'t match the delegate.

I'm trying to handle the MarkerEvent, however I get a compliation error saying my method doesn't match the delegate.

Application.MarkerEvent += new Visio.EApplication_MarkerEven开发者_如何转开发tEventHandler(Application_MarkerEvent);
//...
private void Application_MarkerEvent(Visio.Application application, int sequence, int context)
    {
    }

Basically, I copied that method signature from the Visio 2010 SDK that had a VB example though.

The point of writing that code is to handle the doubleclick event on a shape. I'm open to your suggestion on how I can do it in a different way. However, I just read only about that MarkerEvent thing on the Net.


According to the docs, the last parameter is a string.

So:

private void Application_MarkerEvent(Visio.Application application,
     int sequence, string context)
{
}

But you should also just be able to use +=tabtab

0

精彩评论

暂无评论...
验证码 换一张
取 消