Hi,
If you run the code below you will notice that for some Chars, from each Shape, Color Value is missing (is an empty String). Is this a possibility or I should be able to get Color Value for each Char like I get other values (ColorTrans and FontScale) in the code example? Can you please check this out?
Thanks,
Thanks,
Zeljko
Code:
Code:
public void colorTest() throws Exception {
Diagram diagram = new Diagram(“Test.vsdx”);
ShapeCollection shapes = diagram.getPages().get(0).getShapes();
for (int i = 0; i < shapes.getCount(); i++) {
Shape shape = shapes.get(i);
CharCollection chars = shape.getChars();
for (int j = 0; j < chars.getCount(); j++) {
Char ch = chars.get(j);
System.out.println(“COLOR VALUE: " + ch.getColor().getValue());
System.out.println(“COLOR TRANS: " + ch.getColorTrans().getValue());
System.out.println(“FONT SCALE” + ch.getFontScale().getValue());
System.out.println(””);
}
}
}