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
 
Top