How to set numbered list starting number

Hi,
I have an existing rtf/word document with a numbered list, like

  1. First item
  2. Second item
  3. 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

Thanks a lot!