Mike Borozdin
Mike Borozdin

Reputation: 1188

VSTO Visio 2010 Handling MarkerEvent

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_MarkerEventEventHandler(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.

Upvotes: 2

Views: 682

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1062492

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

Upvotes: 1

Related Questions