我正在使用办公自动化将visio文件转换为指定的xml格式流程图,并且我需要将swimlane数据用作工作流程过程的容器。所以我怎样才能得到workflow shapes and swimlane之间的关系?如何从Visio自动化中获取泳道形状对象中的形状?
CODE
IVisio.Shape shape = o as IVisio.Shape;
double width = shape.Cells["Width"]
.Result[Microsoft.Office.Interop.Visio.VisUnitCodes.visMillimeters];
double height = shape.Cells["Height"]
.Result[Microsoft.Office.Interop.Visio.VisUnitCodes.visMillimeters];
double pinX = shape.Cells["PinX"]
.Result[Microsoft.Office.Interop.Visio.VisUnitCodes.visMillimeters];
double pinY = shape.Cells["PinY"]
.Result[Microsoft.Office.Interop.Visio.VisUnitCodes.visMillimeters];
如果正确,请标记此答案! :d – Jones 2012-08-04 16:33:46