Word.Interfaces.RangeCollectionLoadOptions interface
Contains a collection of Word.Range objects.
Remarks
Properties
| $all | Specifying |
| bold | For EACH ITEM in the collection: Specifies whether the range is formatted as bold. |
| bold |
For EACH ITEM in the collection: Specifies whether the range is formatted as bold in a right-to-left language document. |
| case | For EACH ITEM in the collection: Specifies a |
| character |
For EACH ITEM in the collection: Specifies the character width of the range. |
| combine |
For EACH ITEM in the collection: Specifies if the range contains combined characters. |
| disable |
For EACH ITEM in the collection: Specifies if Microsoft Word ignores the number of characters per line for the corresponding |
| emphasis |
For EACH ITEM in the collection: Specifies the emphasis mark for a character or designated character string. |
| end | For EACH ITEM in the collection: Specifies the ending character position of the range. |
| fit |
For EACH ITEM in the collection: Specifies the width (in the current measurement units) in which Microsoft Word fits the text in the current selection or range. |
| font | For EACH ITEM in the collection: Gets the text format of the range. Use this to get and set font name, size, color, and other properties. |
| grammar |
For EACH ITEM in the collection: Specifies if a grammar check has been run on the range or document. |
| has |
For EACH ITEM in the collection: Specifies the proofing status (spelling and grammar checking) of the range. |
| highlight |
For EACH ITEM in the collection: Specifies the highlight color for the range. |
| horizontal |
For EACH ITEM in the collection: Specifies the formatting for horizontal text set within vertical text. |
| hyperlink | For EACH ITEM in the collection: Gets the first hyperlink in the range, or sets a hyperlink on the range. All hyperlinks in the range are deleted when you set a new hyperlink on the range. Use a '#' to separate the address part from the optional location part. |
| id | For EACH ITEM in the collection: Specifies the ID for the range. |
| is |
For EACH ITEM in the collection: Checks whether the range length is zero. |
| is |
For EACH ITEM in the collection: Gets if the range is collapsed and is located at the end-of-row mark in a table. |
| is |
For EACH ITEM in the collection: Gets whether the text in the range is visible on the screen. |
| italic | For EACH ITEM in the collection: Specifies if the font or range is formatted as italic. |
| italic |
For EACH ITEM in the collection: Specifies if the font or range is formatted as italic (right-to-left languages). |
| kana | For EACH ITEM in the collection: Specifies whether the range of Japanese language text is hiragana or katakana. |
| language |
For EACH ITEM in the collection: Specifies whether Microsoft Word has detected the language of the text in the range. |
| language |
For EACH ITEM in the collection: Specifies a |
| language |
For EACH ITEM in the collection: Specifies an East Asian language for the range. |
| language |
For EACH ITEM in the collection: Specifies a language for the range that isn't classified as an East Asian language. |
| list |
For EACH ITEM in the collection: Returns a |
| parent |
For EACH ITEM in the collection: Gets the parent body of the range. |
| parent |
For EACH ITEM in the collection: Gets the currently supported content control that contains the range. Throws an |
| parent |
For EACH ITEM in the collection: Gets the currently supported content control that contains the range. 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 range. Throws an |
| parent |
For EACH ITEM in the collection: Gets the table cell that contains the range. Throws an |
| parent |
For EACH ITEM in the collection: Gets the table cell that contains the range. 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 range. If it isn't contained in a table, then this method will return an object with its |
| shading | For EACH ITEM in the collection: Returns a |
| show |
For EACH ITEM in the collection: Specifies if all nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) are displayed. |
| spelling |
For EACH ITEM in the collection: Specifies if spelling has been checked throughout the range or document. |
| start | For EACH ITEM in the collection: Specifies the starting character position of the range. |
| story |
For EACH ITEM in the collection: Gets the number of characters in the story that contains the range. |
| story |
For EACH ITEM in the collection: Gets the story type for the range. |
| style | For EACH ITEM in the collection: Specifies the style name for the range. 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 range. Use this property for built-in styles that are portable between locales. To use custom styles or localized style names, see the "style" property. |
| text | For EACH ITEM in the collection: Gets the text of the range. |
| two |
For EACH ITEM in the collection: Specifies whether Microsoft Word sets two lines of text in one and specifies the characters that enclose the text, if any. |
| underline | For EACH ITEM in the collection: Specifies the type of underline applied to the range. |
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
bold
For EACH ITEM in the collection: Specifies whether the range is formatted as bold.
bold?: boolean;
Property Value
boolean
Remarks
boldBidirectional
For EACH ITEM in the collection: Specifies whether the range is formatted as bold in a right-to-left language document.
boldBidirectional?: boolean;
Property Value
boolean
Remarks
case
For EACH ITEM in the collection: Specifies a CharacterCase value that represents the case of the text in the range.
case?: boolean;
Property Value
boolean
Remarks
characterWidth
For EACH ITEM in the collection: Specifies the character width of the range.
characterWidth?: boolean;
Property Value
boolean
Remarks
combineCharacters
For EACH ITEM in the collection: Specifies if the range contains combined characters.
combineCharacters?: boolean;
Property Value
boolean
Remarks
disableCharacterSpaceGrid
For EACH ITEM in the collection: Specifies if Microsoft Word ignores the number of characters per line for the corresponding Range object.
disableCharacterSpaceGrid?: boolean;
Property Value
boolean
Remarks
emphasisMark
For EACH ITEM in the collection: Specifies the emphasis mark for a character or designated character string.
emphasisMark?: boolean;
Property Value
boolean
Remarks
end
For EACH ITEM in the collection: Specifies the ending character position of the range.
end?: boolean;
Property Value
boolean
Remarks
fitTextWidth
For EACH ITEM in the collection: Specifies the width (in the current measurement units) in which Microsoft Word fits the text in the current selection or range.
fitTextWidth?: boolean;
Property Value
boolean
Remarks
font
For EACH ITEM in the collection: Gets the text format of the range. Use this to get and set font name, size, color, and other properties.
font?: Word.Interfaces.FontLoadOptions;
Property Value
Remarks
grammarChecked
For EACH ITEM in the collection: Specifies if a grammar check has been run on the range or document.
grammarChecked?: boolean;
Property Value
boolean
Remarks
hasNoProofing
For EACH ITEM in the collection: Specifies the proofing status (spelling and grammar checking) of the range.
hasNoProofing?: boolean;
Property Value
boolean
Remarks
highlightColorIndex
For EACH ITEM in the collection: Specifies the highlight color for the range.
highlightColorIndex?: boolean;
Property Value
boolean
Remarks
horizontalInVertical
For EACH ITEM in the collection: Specifies the formatting for horizontal text set within vertical text.
horizontalInVertical?: boolean;
Property Value
boolean
Remarks
hyperlink
For EACH ITEM in the collection: Gets the first hyperlink in the range, or sets a hyperlink on the range. All hyperlinks in the range are deleted when you set a new hyperlink on the range. Use a '#' to separate the address part from the optional location part.
hyperlink?: boolean;
Property Value
boolean
Remarks
id
For EACH ITEM in the collection: Specifies the ID for the range.
id?: boolean;
Property Value
boolean
Remarks
isEmpty
For EACH ITEM in the collection: Checks whether the range length is zero.
isEmpty?: boolean;
Property Value
boolean
Remarks
isEndOfRowMark
For EACH ITEM in the collection: Gets if the range is collapsed and is located at the end-of-row mark in a table.
isEndOfRowMark?: boolean;
Property Value
boolean
Remarks
isTextVisibleOnScreen
For EACH ITEM in the collection: Gets whether the text in the range is visible on the screen.
isTextVisibleOnScreen?: boolean;
Property Value
boolean
Remarks
italic
For EACH ITEM in the collection: Specifies if the font or range is formatted as italic.
italic?: boolean;
Property Value
boolean
Remarks
italicBidirectional
For EACH ITEM in the collection: Specifies if the font or range is formatted as italic (right-to-left languages).
italicBidirectional?: boolean;
Property Value
boolean
Remarks
kana
For EACH ITEM in the collection: Specifies whether the range of Japanese language text is hiragana or katakana.
kana?: boolean;
Property Value
boolean
Remarks
languageDetected
For EACH ITEM in the collection: Specifies whether Microsoft Word has detected the language of the text in the range.
languageDetected?: boolean;
Property Value
boolean
Remarks
languageId
For EACH ITEM in the collection: Specifies a LanguageId value that represents the language for the range.
languageId?: boolean;
Property Value
boolean
Remarks
languageIdFarEast
For EACH ITEM in the collection: Specifies an East Asian language for the range.
languageIdFarEast?: boolean;
Property Value
boolean
Remarks
languageIdOther
For EACH ITEM in the collection: Specifies a language for the range that isn't classified as an East Asian language.
languageIdOther?: boolean;
Property Value
boolean
Remarks
listFormat
For EACH ITEM in the collection: Returns a ListFormat object that represents all the list formatting characteristics of the range.
listFormat?: Word.Interfaces.ListFormatLoadOptions;
Property Value
Remarks
parentBody
For EACH ITEM in the collection: Gets the parent body of the range.
parentBody?: Word.Interfaces.BodyLoadOptions;
Property Value
Remarks
parentContentControl
For EACH ITEM in the collection: Gets the currently supported content control that contains the range. 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 currently supported content control that contains the range. 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 range. 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 range. 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 range. 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 range. 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
shading
For EACH ITEM in the collection: Returns a ShadingUniversal object that refers to the shading formatting for the range.
shading?: Word.Interfaces.ShadingUniversalLoadOptions;
Property Value
Remarks
showAll
For EACH ITEM in the collection: Specifies if all nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) are displayed.
showAll?: boolean;
Property Value
boolean
Remarks
spellingChecked
For EACH ITEM in the collection: Specifies if spelling has been checked throughout the range or document.
spellingChecked?: boolean;
Property Value
boolean
Remarks
start
For EACH ITEM in the collection: Specifies the starting character position of the range.
start?: boolean;
Property Value
boolean
Remarks
storyLength
For EACH ITEM in the collection: Gets the number of characters in the story that contains the range.
storyLength?: boolean;
Property Value
boolean
Remarks
storyType
For EACH ITEM in the collection: Gets the story type for the range.
storyType?: boolean;
Property Value
boolean
Remarks
style
For EACH ITEM in the collection: Specifies the style name for the range. 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 range. 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
text
For EACH ITEM in the collection: Gets the text of the range.
text?: boolean;
Property Value
boolean
Remarks
twoLinesInOne
For EACH ITEM in the collection: Specifies whether Microsoft Word sets two lines of text in one and specifies the characters that enclose the text, if any.
twoLinesInOne?: boolean;
Property Value
boolean
Remarks
underline
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
For EACH ITEM in the collection: Specifies the type of underline applied to the range.
underline?: boolean;
Property Value
boolean