如何使用c#调整pool \ Lane在visio Shape中的宽度

嗨,我能够以编程方式调整visio形状的所有形状宽度和高度,但我无法从visio BPMN Shapes调整Pool \ Lane形状的宽度。为什么宽度没有得到调整。

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; 

无论我尝试过它只需要默认大小7.25,但可以使用与下面相同的代码调整高度

 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; 

如何使用c#调整visio 2013中** Pool和Lane **形状的宽度?

当我使用“Pool / Lane”模板时,我遇到了同样的问题。 我切换到“CFF容器”而C#代码(与问题中相同)允许我调整池的宽度。

Interesting Posts