How to adjust the width of a pool \ Lane in visio Shape using c#

為{幸葍}努か 提交于 2019-12-08 12:30:26

问题


Hi i was able to adjust all the shapes width and height of visio shapes programatically, but i was not able to adjust the width of the Pool \ Lane shape from visio BPMN Shapes.Why doesnt the width is not getting adjusted.

   shape.get_CellsSRC((short)Microsoft.Office.Interop.Visio.VisSectionIndices.
                       visSectionObject, (short)Microsoft.Office.Interop.Visio.VisRowIndices.
                       visRowXFormIn, (short)Microsoft.Office.Interop.Visio.VisCellIndices.visXFormWidth).ResultIU = 15;

whatever i tried it only takes the default size 7.25 but the height can be adjusted using the same code as below

shape.get_CellsSRC((short)Microsoft.Office.Interop.Visio.VisSectionIndices.
                       visSectionObject, (short)Microsoft.Office.Interop.Visio.VisRowIndices.
                       visRowXFormIn, (short)Microsoft.Office.Interop.Visio.VisCellIndices.visXFormHeight).ResultIU = 10;

How to adjust the width of the **Pool and Lane ** shape in visio 2013 using c#...??


回答1:


I had the same problem when I was working with the "Pool / Lane" stencil. I switched to the "CFF Container" instead and the C# code (same as in the question) allowed me to resize the width of the pool.



来源:https://stackoverflow.com/questions/33343479/how-to-adjust-the-width-of-a-pool-lane-in-visio-shape-using-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!