Word.Interfaces.ParagraphFormatUpdateData interface
An interface for updating data on the ParagraphFormat
object, for use in paragraphFormat.set({ ... })
.
Properties
alignment | Specifies the alignment for the specified paragraphs. |
first |
Specifies the value (in points) for a first line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent. |
keep |
Specifies whether all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document. |
keep |
Specifies whether the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document. |
left |
Specifies the left indent. |
line |
Specifies the line spacing (in points) for the specified paragraphs. |
line |
Specifies the amount of spacing (in gridlines) after the specified paragraphs. |
line |
Specifies the amount of spacing (in gridlines) before the specified paragraphs. |
mirror |
Specifies whether left and right indents are the same width. |
outline |
Specifies the outline level for the specified paragraphs. |
right |
Specifies the right indent (in points) for the specified paragraphs. |
space |
Specifies the amount of spacing (in points) after the specified paragraph or text column. |
space |
Specifies the spacing (in points) before the specified paragraphs. |
widow |
Specifies whether the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Microsoft Word repaginates the document. |
Property Details
alignment
Specifies the alignment for the specified paragraphs.
alignment?: Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified";
Property Value
Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified"
Remarks
firstLineIndent
Specifies the value (in points) for a first line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent.
firstLineIndent?: number;
Property Value
number
Remarks
keepTogether
Specifies whether all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document.
keepTogether?: boolean;
Property Value
boolean
Remarks
keepWithNext
Specifies whether the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document.
keepWithNext?: boolean;
Property Value
boolean
Remarks
leftIndent
Specifies the left indent.
leftIndent?: number;
Property Value
number
Remarks
lineSpacing
Specifies the line spacing (in points) for the specified paragraphs.
lineSpacing?: number;
Property Value
number
Remarks
lineUnitAfter
Specifies the amount of spacing (in gridlines) after the specified paragraphs.
lineUnitAfter?: number;
Property Value
number
Remarks
lineUnitBefore
Specifies the amount of spacing (in gridlines) before the specified paragraphs.
lineUnitBefore?: number;
Property Value
number
Remarks
mirrorIndents
Specifies whether left and right indents are the same width.
mirrorIndents?: boolean;
Property Value
boolean
Remarks
outlineLevel
Specifies the outline level for the specified paragraphs.
outlineLevel?: Word.OutlineLevel | "OutlineLevel1" | "OutlineLevel2" | "OutlineLevel3" | "OutlineLevel4" | "OutlineLevel5" | "OutlineLevel6" | "OutlineLevel7" | "OutlineLevel8" | "OutlineLevel9" | "OutlineLevelBodyText";
Property Value
Word.OutlineLevel | "OutlineLevel1" | "OutlineLevel2" | "OutlineLevel3" | "OutlineLevel4" | "OutlineLevel5" | "OutlineLevel6" | "OutlineLevel7" | "OutlineLevel8" | "OutlineLevel9" | "OutlineLevelBodyText"
Remarks
rightIndent
Specifies the right indent (in points) for the specified paragraphs.
rightIndent?: number;
Property Value
number
Remarks
spaceAfter
Specifies the amount of spacing (in points) after the specified paragraph or text column.
spaceAfter?: number;
Property Value
number
Remarks
spaceBefore
Specifies the spacing (in points) before the specified paragraphs.
spaceBefore?: number;
Property Value
number
Remarks
widowControl
Specifies whether the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Microsoft Word repaginates the document.
widowControl?: boolean;
Property Value
boolean
Remarks
Office Add-ins