Word.Interfaces.RangeData interface

An interface describing the data returned by calling range.toJSON().

Properties

font

Gets the text format of the range. Use this to get and set font name, size, color, and other properties.

inlinePictures

Gets the collection of inline picture objects in the range.

style

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.

text

Gets the text of the range.

Property Details

font

Gets the text format of the range. Use this to get and set font name, size, color, and other properties.

font?: Word.Interfaces.FontData;

Property Value

Remarks

[ API set: WordApi 1.1 ]

inlinePictures

Gets the collection of inline picture objects in the range.

inlinePictures?: Word.Interfaces.InlinePictureData[];

Property Value

Remarks

[ API set: WordApi 1.2 ]

style

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?: string;

Property Value

string

Remarks

[ API set: WordApi 1.1 ]

text

Gets the text of the range.

text?: string;

Property Value

string

Remarks

[ API set: WordApi 1.1 ]