Free Support Forum - aspose.com

Get list font color :

Hi ,
I am using Aspose words java for document conversion .I have attached document with this post . I need to get the font color of list . I have tried by following code but no use .

ListFormat lfmt = paragraph.getListFormat();
System.out.println(lfmt.getList().getListLevels().get(0).getFont().getColor());

Output :
java.awt.Color[r=0,g=0,b=0].

Is it possible to get font color of a list for each 9 levels?

Regards,
Anbu




Hi

Thanks for your request. Please try using getParagraphBreakFont property.

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/paragraph.html#ParagraphBreakFont

Please let me know in case of any issues. I will be glad to help you.

Best regards,