【发布时间】:2012-07-27 01:42:55
【问题描述】:
我正在使用办公自动化将 visio 文件转换为指定的 xml 格式流程图,我需要使用泳道数据作为工作流过程的容器。那么我怎样才能得到workflow shapes and swimlane之间的关系呢?
代码
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];
【问题讨论】:
标签: c# automation ms-office visio