FromSheet of Connector

S

Saritha

Hi,
am finding problem when am trying to get the shape from which the
connection originates. Its giving me the connector itself when am using
FromSheet Property.
Any suggestions?
Thanks
Saritha.
 
M

Mike Mueller [MSFT]

This is actually correct behavior. The Visio object model has no concept of
a "connection". The connector is itself a shape which, in Visio terminology,
is "glued" to the other shape(s).

To accomplish what you want you need to do the following:
1. Obtain the connector shape from the FromSheet property of a shape.
2. Examine the ToSheet property of the connector shape to get the shape at
the other end of the connector. (remember that the ToSheet collection will
also contain the original shape from which you started as well as the shape
at the other end).

Hope this helps.
 

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