Word.Interfaces.DocumentLoadOptions interface

The Document object is the top level object. A Document object contains one or more sections, content controls, and the body that contains the contents of the document.

[ API set: WordApi 1.1 ]

Properties

$all
allowCloseOnUntitled

Gets or sets a value that indicates that, when opening a new document, whether it is allowed to close this document even if this document is untitled. True to close, false otherwise.

[ API set: WordApi ]

body

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

[ API set: WordApi 1.1 ]

properties

Gets the properties of the document.

[ API set: WordApi 1.3 ]

saved

Indicates whether the changes in the document have been saved. A value of true indicates that the document hasn't changed since it was saved. Read-only.

[ API set: WordApi 1.1 ]

Property Details

$all

$all?: boolean;

Property Value

boolean

allowCloseOnUntitled

Gets or sets a value that indicates that, when opening a new document, whether it is allowed to close this document even if this document is untitled. True to close, false otherwise.

[ API set: WordApi ]

allowCloseOnUntitled?: boolean;

Property Value

boolean

body

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

[ API set: WordApi 1.1 ]

body?: Word.Interfaces.BodyLoadOptions;

Property Value

properties

Gets the properties of the document.

[ API set: WordApi 1.3 ]

properties?: Word.Interfaces.DocumentPropertiesLoadOptions;

Property Value

saved

Indicates whether the changes in the document have been saved. A value of true indicates that the document hasn't changed since it was saved. Read-only.

[ API set: WordApi 1.1 ]

saved?: boolean;

Property Value

boolean