VDocs.NET
Back to DOM

DOM.Elements.TextElements.Paragraph

Namespace: DOM.Elements.TextElements

Represents a paragraph within the document model. Aacts as a container for text runs, images, shapes, and other inline or anchored elements, and can be styled using.

3 members

Properties

Style

Gets or sets the paragraph-level style applied to this paragraph. This includes formatting such as alignment, spacing, indentation, and other typographic or structural properties that affect the entire paragraph.

Methods

AddImage

AddImage(IImage image)

Adds an image to the paragraph's content flow. The image is inserted as a child element and participates in the paragraph's inline layout unless its implementation specifies otherwise (e.g., floating or anchored).

Parameters

image
The image element to add.

Returns

The sameinstance, enabling fluent usage patterns.

AddShape

AddShape(IShape shape)

Adds a vector or drawing shape to the paragraph. Shapes may be inline or floating depending on their configuration. The shape is appended to the paragraph's collection of child elements.

Parameters

shape
The shape element to add.

Returns

The sameinstance, allowing fluent method chaining.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

C#VB.NET
var doc = new WordDocument();

doc.AddParagraph()
   .AddText("Invoice")
   .SetHeading(HeadingLevel.Title);

doc.Save("invoice.docx");

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or
Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.