Visio activex shapes vertices
i am using in my c# project visio activex to import 开发者_开发百科visio floorplan drawings. and i need to get the vertices of the shapes in that drawing, and i can't find any method or property for it. if someone has any ideas please help.
You can use the BoundingBox method on the shape class to retrieve the dimensions of the box around a shape.
This MSDN page will give you more information about the method, it returns the top, bottom, left and right of the box, so it should be possible to work out the vertices from that.
Visio uses a PinX and a PinY to describe the location of a shape using the shapes Height and Width will allow you to calculate the vertices.
精彩评论