Aspose diagram文本水平对齐

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);

文字是居中显示的
image.png (4.7 KB)
如何设置成左对齐
image.png (3.3 KB)

@tumengzhu

我们正在测试该场景,并会尽快回复您。

请问有结果了吗?感谢回复

@tumengzhu

请尝试以下示例代码:

Shape shape = page.Shapes.GetShape(1);
shape.Paras[0].HorzAlign.Value = HorzAlignValue.LeftAlign;