width of a shape

T

timtos

I´ve got a shape with a width of 60.
But that is only the width of the rectangle appearing for example when clicking on the shape in visio.The problem is, that there is
text overlapping this rectangle to the left and to the right.

How do one get the "maximum" width of a shape?
Thanks for every little idea!
Greetings,
timtos.
 
K

Kari Yli-Kuha

timtos said:
I´ve got a shape with a width of 60.
But that is only the width of the rectangle appearing for example when clicking on the shape in visio.The problem is, that there is
text overlapping this rectangle to the left and to the right.

How do one get the "maximum" width of a shape?
Thanks for every little idea!
Greetings,
timtos.

Try BoundingBox method:

Shape.BoundingBox visBBoxDrawingCoords + visBBoxExtents, left, bottom, right, top

Return values are in internal units (in.)

/C
 

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