Shape connectors in Visio

后端 未结 2 597
别那么骄傲
别那么骄傲 2021-01-15 05:50

I\'m writing an Add-In to Visio 2010 in Studio 2010 on C#. I need to read a diagram currently opened in Visio. I know how to read shapes of the diagram.

The question

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 06:32

    For coordinates:

    foreach (Visio.Page Page in Pages)
    {
       Visio.Shapes Shapes = Page.Shapes;
       foreach (Visio.Shape Shape in Shapes)
       {
          double x = Shape.Cells["PinX"].ResultIU;
          double y = Shape.Cells["PinY"].ResultIU;
    

提交回复
热议问题