Paragraphs
A Paragraph is the primary block container. Add one withdoc.AddParagraph(), then append text runs, images, or shapes. Paragraphs can be styled via ParagraphStyle.
Create a Simple Paragraph
Use case: Add a paragraph of body text to a document.
Multiple Paragraphs
Use case: Build a short multi-paragraph document.
Styled Paragraph
Use case: Apply a ParagraphStyle to control spacing and indentation.
Paragraph with Inline Image
Use case: Insert a small logo inside a paragraph's flow.
Related API
Frequently asked questions
How do I add a blank line between paragraphs?
Add an empty paragraph with doc.AddParagraph(), or use Spacing.Before/After on the following paragraph's style.
How do I insert a page break?
Add a new section with doc.AddSection() and set its SectionBreakType to SectionMarkValues.nextPage.
Can a paragraph contain both text and an image?
Yes. Use p.AddText(...) and p.AddImage(...) on the same paragraph.