Add List

This example showcases the straightforward creation of a structured Word document with a multi-level list using the IronWord library in C#.

Create a new Word document using the WordDocument class. The document structure includes a text run with the content "sample text," encapsulated within a paragraph. This paragraph is then utilized as the content for a list item, forming a ListItem. Subsequently, a MultiLevelTextList is instantiated, and the same ListItem is added four times. Finally, the created MultiLevelTextList is added to the Word document, and the entire document is saved as a DOCX file named "document.docx."