Getting the name of the connection port on the shape - C#

P

Pradeep

I am working on Visio ActiveX control in my C# application.
I have created a stencil where each shape has two types of connection ports
- Input ports and Output ports.
When i connect two shapes using a connector, I have to get the names of the
connection ports from the shapes that are connected. This is for validation.
I have handled the ConnectionsAdded(Microsoft.Office.Interop.Visio.Connects
Connects) event of the current page in the visio control and I am using
"Connects.ToSheet property" to get the name of the shape. However i am unable
to fetch the name of the connection port on the shape.
Please help me out on how to get the connection port names using C# from the
shape when connection is established.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top