Edit

Share via


Word.Interfaces.DocumentCreatedData interface

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

Properties

body

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

contentControls

Gets the collection of content control objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc.

properties

Gets the properties of the document.

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.

sections

Gets the collection of section objects in the document.

Property Details

body

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

TypeScript
body?: Word.Interfaces.BodyData;

Property Value

Remarks

[ API set: WordApiHiddenDocument 1.3 ]

contentControls

Gets the collection of content control objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc.

TypeScript
contentControls?: Word.Interfaces.ContentControlData[];

Property Value

Remarks

[ API set: WordApiHiddenDocument 1.3 ]

properties

Gets the properties of the document.

TypeScript
properties?: Word.Interfaces.DocumentPropertiesData;

Property Value

Remarks

[ API set: WordApiHiddenDocument 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.

TypeScript
saved?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiHiddenDocument 1.3 ]

sections

Gets the collection of section objects in the document.

TypeScript
sections?: Word.Interfaces.SectionData[];

Property Value

Remarks

[ API set: WordApiHiddenDocument 1.3 ]