Diagram diagram = new Diagram();
Page page = diagram.getPages().get(0);
String str = “1.that this is a complete and accurate\n” +
“2.that there is no politically exposed person”;
page.addText(1,1,5,3,str);
diagram.save(dataDir + “CreateDiagram-out2.vsdx”, SaveFileFormat.VSDX);
请问有结果了吗?感谢回复
请尝试以下示例代码:
Shape shape = page.Shapes.GetShape(1);
shape.Paras[0].HorzAlign.Value = HorzAlignValue.LeftAlign;