Shape Position with respect to other shape

A

Asif

Hi all,

I need to know the position of shape with respect to other shape in
terms of location (Left, Top, Right, and Bottom)

Is there any way to find the position of one shape (Left, Top, Right,
and Bottom) with relation to other shape?

Thanks

Asif
 
P

Paul Herber

Hi all,

I need to know the position of shape with respect to other shape in
terms of location (Left, Top, Right, and Bottom)

Is there any way to find the position of one shape (Left, Top, Right,
and Bottom) with relation to other shape?

Compare the PosX and PosY values.
 
J

John Marshall, MVP

There is the shapesheet function RectSect
http://msdn2.microsoft.com/en-us/library/aa224211(office.11).aspx.

I have not played with it, so I can not give you a more concrete example
than the one in the documentation.

Within code, there is spatialnieghbors spatialrelations properties that lets
you know who is around, but nothing that gives a sector like the shapeshet
function RectSect.

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
 

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