Free Support Forum - aspose.com

List indent formatting

Im trying to format a list so that the first few levels are “less indented” than the lower levels, as I only have a few high levels items and many lower level ones.

When I use:

ListLevel lev1 = mindMapList.getListLevels().get(1);
lev1.setTabPosition(20);

the tab amount stays as it is, but if I use setTabPosition with a value much higher (like 150) is appears to indent much further to the right as you would expect.

Is there some sort of minimum indent that the list level can have?

Hi

Thanks for your inquiry. I think that you can try using the following code.

//Get list level

ListLevel lev1 = mindMapList.getListLevels().get(1);

//Set tab position

lev1.setTabPosition(lev1.getNumberPosition()+10);

Hope this helps.

Best regards.