We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TabAlignment.LIST

Hi,

I am currently trying to rebuild/emulate an already existing rtf document with Aspose.Words. One of the tasks is to build a style which contains tab stops with the attribute "list tab stop" (I don't know how it is called exactly in the english version of Word, I use a localized one). I try to achieve this with the following line of code:

styleH9.getParagraphFormat().getTabStops().add(new TabStop(ConvertUtil.millimeterToPoint(66.2),TabAlignment.LIST,TabLeader.NONE));

But TabAlignment.LIST has the same effect as TabAlignment.LEFT - in both cases Word tells me that the tab stop is "left".

What am I doing wrong?

Best regards,
Mathias Harbeck

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I think you can get or set list tab position using ListLevel.TabPosition (of course, if paragraph is a list item, otherwise there is no sense in TabAlignment.LIST):

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/listlevel.html#TabPosition

Hope this helps. Please feel free to ask if you need more assistance, I will be glad to help you.

Best regards,