Word.Interfaces.ParagraphUpdateData interface
An interface for updating data on the Paragraph
object, for use in paragraph.set({ ... })
.
Properties
alignment | Specifies the alignment for a paragraph. The value can be 'left', 'centered', 'right', or 'justified'. |
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. |
font | Gets the text format of the paragraph. Use this to get and set font name, size, color, and other properties. |
left |
Specifies the left indent value, in points, for the paragraph. |
line |
Specifies the line spacing, in points, for the specified paragraph. In the Word UI, this value is divided by 12. |
line |
Specifies the amount of spacing, in grid lines, after the paragraph. |
line |
Specifies the amount of spacing, in grid lines, before the paragraph. |
outline |
Specifies the outline level for the paragraph. |
right |
Specifies the right indent value, in points, for the paragraph. |
space |
Specifies the spacing, in points, after the paragraph. |
space |
Specifies the spacing, in points, before the paragraph. |
style | Specifies the style name for the paragraph. Use this property for custom styles and localized style names. To use the built-in styles that are portable between locales, see the "styleBuiltIn" property. |
Property Details
alignment
Specifies the alignment for a paragraph. The value can be 'left', 'centered', 'right', or 'justified'.
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
font
Gets the text format of the paragraph. Use this to get and set font name, size, color, and other properties.
font?: Word.Interfaces.FontUpdateData;
Property Value
Remarks
leftIndent
Specifies the left indent value, in points, for the paragraph.
leftIndent?: number;
Property Value
number
Remarks
lineSpacing
Specifies the line spacing, in points, for the specified paragraph. In the Word UI, this value is divided by 12.
lineSpacing?: number;
Property Value
number
Remarks
lineUnitAfter
Specifies the amount of spacing, in grid lines, after the paragraph.
lineUnitAfter?: number;
Property Value
number
Remarks
lineUnitBefore
Specifies the amount of spacing, in grid lines, before the paragraph.
lineUnitBefore?: number;
Property Value
number
Remarks
outlineLevel
Specifies the outline level for the paragraph.
outlineLevel?: number;
Property Value
number
Remarks
rightIndent
Specifies the right indent value, in points, for the paragraph.
rightIndent?: number;
Property Value
number
Remarks
spaceAfter
Specifies the spacing, in points, after the paragraph.
spaceAfter?: number;
Property Value
number
Remarks
spaceBefore
Specifies the spacing, in points, before the paragraph.
spaceBefore?: number;
Property Value
number
Remarks
style
Specifies the style name for the paragraph. Use this property for custom styles and localized style names. To use the built-in styles that are portable between locales, see the "styleBuiltIn" property.
style?: string;
Property Value
string
Remarks
Office Add-ins