ParagraphClass
Definition
- Namespace
- DOM.Elements.TextElements
- Assembly
- DOM.dll
Represents a paragraph within the document model.
Remarks
A is a fundamental block-level container that groups inline content such as text runs, images, and shapes into a single logical unit. It corresponds to a <w:p> element in WordprocessingML and to <p> in HTML. Paragraph Paragraphs are always added to a container (document, section, header, footer, or table cell) via methods like and can be styled using to control alignment, indentation, spacing, borders, pagination, and East-Asian typographic behaviour. AddParagraph() ParagraphStyle Inline content is added with,, and . The paragraph participates in layout as a single block; line breaking occurs inside the paragraph based on its width and style. AddText(string) AddImage(IImage) AddShape(IShape)
Examples
Properties
Gets or sets the paragraph-level style applied to this paragraph.
The style affects the entire paragraph block, as opposed to character-level styling which is applied per text run through . Style
Methods
Adds an image to the paragraph's content flow.
Adds a vector or drawing shape to the paragraph.