We are trying to work out how ListID works when we have numbered headings and we aren’t sure if it is a bug in Aspose or the expected behaviour. If the latter, then we would like to know why this is the expected behaviour: i.e. what are the rules involved?
In one document I have created a simple numbered list and twice in that list set “restart numbering”. My list looks like this:
And the ListID changes for each restart. So I have:
However when I do the equivalent type of simple test with numbered headings I get odd behaviour. I have six headings that look like this in Word:
And I get the following results for ListID:
1. L1a (ListID=5)
2. L2a (ListID=5)
1. L1b (ListID=7)
2. L2b (ListID=5)
1. L1c (ListID=9)
2. L2c (ListID=5)
So that item L2b that I expected should have ListID=7 actually has ListID=5, and the same for L2c that I expected to have ListID=9.