VDocs.NET
HomeAPI Reference
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.