Edit

Share via


Word.Interfaces.DocumentUpdateData interface

An interface for updating data on the Document object, for use in document.set({ ... }).

Properties

activeWindow

Gets the active window for the document.

autoHyphenation

Specifies if automatic hyphenation is turned on for the document.

autoSaveOn

Specifies if the edits in the document are automatically saved.

bibliography

Returns a Bibliography object that represents the bibliography references contained within the document.

body

Gets the Body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc.

changeTrackingMode

Specifies the ChangeTracking mode.

consecutiveHyphensLimit

Specifies the maximum number of consecutive lines that can end with hyphens.

hyphenateCaps

Specifies whether words in all capital letters can be hyphenated.

languageDetected

Specifies whether Microsoft Word has detected the language of the document text.

pageSetup

Returns a PageSetup object that's associated with the document.

properties

Gets the properties of the document.

Property Details

activeWindow

Gets the active window for the document.

activeWindow?: Word.Interfaces.WindowUpdateData;

Property Value

Remarks

[ API set: WordApiDesktop 1.2 ]

autoHyphenation

Specifies if automatic hyphenation is turned on for the document.

autoHyphenation?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

autoSaveOn

Specifies if the edits in the document are automatically saved.

autoSaveOn?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

bibliography

Returns a Bibliography object that represents the bibliography references contained within the document.

bibliography?: Word.Interfaces.BibliographyUpdateData;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

body

Gets the Body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc.

body?: Word.Interfaces.BodyUpdateData;

Property Value

Remarks

[ API set: WordApi 1.1 ]

changeTrackingMode

Specifies the ChangeTracking mode.

changeTrackingMode?: Word.ChangeTrackingMode | "Off" | "TrackAll" | "TrackMineOnly";

Property Value

Word.ChangeTrackingMode | "Off" | "TrackAll" | "TrackMineOnly"

Remarks

[ API set: WordApi 1.4 ]

consecutiveHyphensLimit

Specifies the maximum number of consecutive lines that can end with hyphens.

consecutiveHyphensLimit?: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

hyphenateCaps

Specifies whether words in all capital letters can be hyphenated.

hyphenateCaps?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

languageDetected

Specifies whether Microsoft Word has detected the language of the document text.

languageDetected?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

pageSetup

Returns a PageSetup object that's associated with the document.

pageSetup?: Word.Interfaces.PageSetupUpdateData;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

properties

Gets the properties of the document.

properties?: Word.Interfaces.DocumentPropertiesUpdateData;

Property Value

Remarks

[ API set: WordApi 1.3 ]