Add Paragraph

One of the building blocks of a Word document is a paragraph. A paragraph can contain various elements, such as texts, images, and shapes. The code example above demonstrates adding a paragraph with differently styled text to a newly created Word document.

In this example, a new Word document is created along with multiple texts styled differently. Each text is added to the paragraph using the AddText method. The paragraph is then added to the document using the AddParagraph method. Finally, the new document is exported to a file.