Skip to content
Document Authoring DA  API Docs v1.15.1
npmGitHub

ParagraphPropertiesNEW

ParagraphProperties:

Supported paragraph-level properties.

These properties apply to the paragraph container rather than an inline text span. Use Paragraph.setParagraphProperties for paragraph properties and TextView.setFormatting for run text properties such as bold or font size.

styleId: ParagraphStyleId | null

Built-in paragraph style ID. null clears the explicit paragraph style and lets the paragraph fall back to the document default style.


alignment: "left" | "center" | "right" | "justify" | null

Paragraph text alignment. null clears the explicit paragraph alignment and lets the paragraph inherit from its style.


lineSpacingFactor: number | null

Paragraph line spacing multiplier. null clears the explicit line spacing and lets the paragraph inherit from its style.


spaceBefore: number | null

Spacing before the paragraph, in points. null clears the explicit spacing and lets the paragraph inherit from its style.


spaceAfter: number | null

Spacing after the paragraph, in points. null clears the explicit spacing and lets the paragraph inherit from its style.


contextualSpacing: boolean | null

Whether spacing between paragraphs of the same style is suppressed. null clears the explicit contextual spacing value and lets the paragraph inherit from its style.


indentation: ParagraphIndentation | null

Direct paragraph indentation, in points. null clears the explicit indentation and lets the paragraph inherit from its style.


tabStops: ParagraphTabStop[] | null

Direct paragraph tab stops. null clears the explicit tab stops and lets the paragraph inherit from its style.


border: ParagraphBorder | null

Direct paragraph border. null clears the explicit paragraph border.


shading: ParagraphShading | null

Direct paragraph shading. null clears the explicit paragraph shading.