Hi,
I have an existing rtf/word document with a numbered list, like
- First item
- Second item
- Third item
…
How can I set the starting number of this list? I would like to change the numbering of the list to something like this:
5. First item
6. Second item
7. Third item
…
@david.csillik.messerli,
Please see these Word DOCX documents (test documents.zip (20.3 KB)) and try running the following code.
Document doc = new Document("C:\\temp\\list.docx");
Aspose.Words.Lists.List list = doc.Lists[0];
list.ListLevels[0].StartAt = 5;
doc.Save("C:\\Temp\\20.12.docx");
1 Like