Word.Interfaces.ParagraphCollectionLoadOptions interface
Contains a collection of Word.Paragraph objects.
Remarks
Properties
$all | Specifying |
alignment | For EACH ITEM in the collection: Specifies the alignment for a paragraph. The value can be 'left', 'centered', 'right', or 'justified'. |
first |
For EACH ITEM in the collection: 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 | For EACH ITEM in the collection: Gets the text format of the paragraph. Use this to get and set font name, size, color, and other properties. |
is |
For EACH ITEM in the collection: Indicates the paragraph is the last one inside its parent body. |
is |
For EACH ITEM in the collection: Checks whether the paragraph is a list item. |
left |
For EACH ITEM in the collection: Specifies the left indent value, in points, for the paragraph. |
line |
For EACH ITEM in the collection: Specifies the line spacing, in points, for the specified paragraph. In the Word UI, this value is divided by 12. |
line |
For EACH ITEM in the collection: Specifies the amount of spacing, in grid lines, after the paragraph. |
line |
For EACH ITEM in the collection: Specifies the amount of spacing, in grid lines, before the paragraph. |
list | For EACH ITEM in the collection: Gets the List to which this paragraph belongs. Throws an |
list |
For EACH ITEM in the collection: Gets the ListItem for the paragraph. Throws an |
list |
For EACH ITEM in the collection: Gets the ListItem for the paragraph. If the paragraph isn't part of a list, then this method will return an object with its |
list |
For EACH ITEM in the collection: Gets the List to which this paragraph belongs. If the paragraph isn't in a list, then this method will return an object with its |
outline |
For EACH ITEM in the collection: Specifies the outline level for the paragraph. |
parent |
For EACH ITEM in the collection: Gets the parent body of the paragraph. |
parent |
For EACH ITEM in the collection: Gets the content control that contains the paragraph. Throws an |
parent |
For EACH ITEM in the collection: Gets the content control that contains the paragraph. If there isn't a parent content control, then this method will return an object with its |
parent |
For EACH ITEM in the collection: Gets the table that contains the paragraph. Throws an |
parent |
For EACH ITEM in the collection: Gets the table cell that contains the paragraph. Throws an |
parent |
For EACH ITEM in the collection: Gets the table cell that contains the paragraph. If it isn't contained in a table cell, then this method will return an object with its |
parent |
For EACH ITEM in the collection: Gets the table that contains the paragraph. If it isn't contained in a table, then this method will return an object with its |
right |
For EACH ITEM in the collection: Specifies the right indent value, in points, for the paragraph. |
space |
For EACH ITEM in the collection: Specifies the spacing, in points, after the paragraph. |
space |
For EACH ITEM in the collection: Specifies the spacing, in points, before the paragraph. |
style | For EACH ITEM in the collection: 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 |
For EACH ITEM in the collection: Specifies the built-in style name for the paragraph. Use this property for built-in styles that are portable between locales. To use custom styles or localized style names, see the "style" property. |
table |
For EACH ITEM in the collection: Gets the level of the paragraph's table. It returns 0 if the paragraph isn't in a table. |
text | For EACH ITEM in the collection: Gets the text of the paragraph. |
Property Details
$all
Specifying $all
for the load options loads all the scalar properties (such as Range.address
) but not the navigational properties (such as Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
alignment
For EACH ITEM in the collection: Specifies the alignment for a paragraph. The value can be 'left', 'centered', 'right', or 'justified'.
alignment?: boolean;
Property Value
boolean
Remarks
firstLineIndent
For EACH ITEM in the collection: 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?: boolean;
Property Value
boolean
Remarks
font
For EACH ITEM in the collection: Gets the text format of the paragraph. Use this to get and set font name, size, color, and other properties.
font?: Word.Interfaces.FontLoadOptions;
Property Value
Remarks
isLastParagraph
For EACH ITEM in the collection: Indicates the paragraph is the last one inside its parent body.
isLastParagraph?: boolean;
Property Value
boolean
Remarks
isListItem
For EACH ITEM in the collection: Checks whether the paragraph is a list item.
isListItem?: boolean;
Property Value
boolean
Remarks
leftIndent
For EACH ITEM in the collection: Specifies the left indent value, in points, for the paragraph.
leftIndent?: boolean;
Property Value
boolean
Remarks
lineSpacing
For EACH ITEM in the collection: Specifies the line spacing, in points, for the specified paragraph. In the Word UI, this value is divided by 12.
lineSpacing?: boolean;
Property Value
boolean
Remarks
lineUnitAfter
For EACH ITEM in the collection: Specifies the amount of spacing, in grid lines, after the paragraph.
lineUnitAfter?: boolean;
Property Value
boolean
Remarks
lineUnitBefore
For EACH ITEM in the collection: Specifies the amount of spacing, in grid lines, before the paragraph.
lineUnitBefore?: boolean;
Property Value
boolean
Remarks
list
For EACH ITEM in the collection: Gets the List to which this paragraph belongs. Throws an ItemNotFound
error if the paragraph isn't in a list.
list?: Word.Interfaces.ListLoadOptions;
Property Value
Remarks
listItem
For EACH ITEM in the collection: Gets the ListItem for the paragraph. Throws an ItemNotFound
error if the paragraph isn't part of a list.
listItem?: Word.Interfaces.ListItemLoadOptions;
Property Value
Remarks
listItemOrNullObject
For EACH ITEM in the collection: Gets the ListItem for the paragraph. If the paragraph isn't part of a list, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
listItemOrNullObject?: Word.Interfaces.ListItemLoadOptions;
Property Value
Remarks
listOrNullObject
For EACH ITEM in the collection: Gets the List to which this paragraph belongs. If the paragraph isn't in a list, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
listOrNullObject?: Word.Interfaces.ListLoadOptions;
Property Value
Remarks
outlineLevel
For EACH ITEM in the collection: Specifies the outline level for the paragraph.
outlineLevel?: boolean;
Property Value
boolean
Remarks
parentBody
For EACH ITEM in the collection: Gets the parent body of the paragraph.
parentBody?: Word.Interfaces.BodyLoadOptions;
Property Value
Remarks
parentContentControl
For EACH ITEM in the collection: Gets the content control that contains the paragraph. Throws an ItemNotFound
error if there isn't a parent content control.
parentContentControl?: Word.Interfaces.ContentControlLoadOptions;
Property Value
Remarks
parentContentControlOrNullObject
For EACH ITEM in the collection: Gets the content control that contains the paragraph. If there isn't a parent content control, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
parentContentControlOrNullObject?: Word.Interfaces.ContentControlLoadOptions;
Property Value
Remarks
parentTable
For EACH ITEM in the collection: Gets the table that contains the paragraph. Throws an ItemNotFound
error if it isn't contained in a table.
parentTable?: Word.Interfaces.TableLoadOptions;
Property Value
Remarks
parentTableCell
For EACH ITEM in the collection: Gets the table cell that contains the paragraph. Throws an ItemNotFound
error if it isn't contained in a table cell.
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
Property Value
Remarks
parentTableCellOrNullObject
For EACH ITEM in the collection: Gets the table cell that contains the paragraph. If it isn't contained in a table cell, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
Property Value
Remarks
parentTableOrNullObject
For EACH ITEM in the collection: Gets the table that contains the paragraph. If it isn't contained in a table, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
parentTableOrNullObject?: Word.Interfaces.TableLoadOptions;
Property Value
Remarks
rightIndent
For EACH ITEM in the collection: Specifies the right indent value, in points, for the paragraph.
rightIndent?: boolean;
Property Value
boolean
Remarks
spaceAfter
For EACH ITEM in the collection: Specifies the spacing, in points, after the paragraph.
spaceAfter?: boolean;
Property Value
boolean
Remarks
spaceBefore
For EACH ITEM in the collection: Specifies the spacing, in points, before the paragraph.
spaceBefore?: boolean;
Property Value
boolean
Remarks
style
For EACH ITEM in the collection: 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?: boolean;
Property Value
boolean
Remarks
styleBuiltIn
For EACH ITEM in the collection: Specifies the built-in style name for the paragraph. Use this property for built-in styles that are portable between locales. To use custom styles or localized style names, see the "style" property.
styleBuiltIn?: boolean;
Property Value
boolean
Remarks
tableNestingLevel
For EACH ITEM in the collection: Gets the level of the paragraph's table. It returns 0 if the paragraph isn't in a table.
tableNestingLevel?: boolean;
Property Value
boolean
Remarks
text
For EACH ITEM in the collection: Gets the text of the paragraph.
text?: boolean;
Property Value
boolean
Remarks
Office Add-ins