How to search a connector

N

Narayan

Hi

I'm doing programming visio component in a windows application. In that i
can able to identify any rectangular shape on Mouse click through
get_spatialsearch method of a page ?

Can anyone please help me how to identify a "line" / "Connector" on Mouse
click in a page ?

Much Thanks,
Narayan.
 
M

Mark Nelson [MS]

You can try a couple of methods to identify connectors. First, every shape
is either 1-D or 2-D. Check the Shape.OneD property to make sure that it is
True. Second, you can differentiate a connector from a regular line by
looking at the ObjType cell in the Shapesheet. If
Shape.CellsU("ObjType").ResultIU = visLOFlagsRoutable then you have a
connector.
 
A

Al Edlund

Mark,
thanks
Al
Mark Nelson said:
You can try a couple of methods to identify connectors. First, every shape
is either 1-D or 2-D. Check the Shape.OneD property to make sure that it is
True. Second, you can differentiate a connector from a regular line by
looking at the ObjType cell in the Shapesheet. If
Shape.CellsU("ObjType").ResultIU = visLOFlagsRoutable then you have a
connector.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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