Skip to content

ParagraphFormat

Gets the paragraph format.

1
readonly `Alignment` : ( `"Center"` | `"Justify"` | `"Left"` | `"Right"` )

Gets or sets the text alignment for the paragraph.

BackgroundColor : string
Gets or sets the paragraph background color.

KeepLinesTogether : boolean
When true, all lines for this paragraph are maintained on a single page whenever possible.

KeepWithNext : boolean
When true, the paragraph is on the same page as the following paragraph whenever possible.

LeftIndentation : number
Gets or sets (in points) the left indentation for the paragraph.

LineSpacing : number
Gets or sets the line spacing.

LineSpacingRule : ( "AtLeast" | "Exactly" | "Multiple" )
Gets or sets the line spacing rule.

MirrorIndents : boolean
Gets or sets whether the paragraph indents should be interpreted as mirrored indents.

NoSpaceBetweenParagraphsOfSameStyle : boolean
When true, spacing between paragraphs with the same style will be ignored.

PageBreakBefore : boolean
When true, this paragraph is rendered at the start of a new page in the document.

RightIndentation : number
Gets or sets (in points) the right indentation for the paragraph.

RightToLeft : boolean
When true, this is a right-to-left paragraph.

SpaceAfter : number
Gets or sets the amount of spacing after the paragraph (in points).

SpaceBefore : number
Gets or sets the amount of spacing before the paragraph (in points).

SpecialIndentation : number
Gets or sets the special indentation for the paragraph.

WordWrap : boolean
Gets or sets a value indicating whether to break text which exceeds the text extents of a line by moving the word to the new line or breaking the word on the character level.

ClearFormatting() : void
Clears the formatting. myParagraph.ParagraphFormat