Word.Interfaces.DocumentData interface
An interface describing the data returned by calling document.toJSON().
Properties
| body | Gets the |
| content |
Gets the collection of |
| saved | Indicates whether the changes in the document have been saved. A value of |
| sections | Gets the collection of |
Property Details
body
Gets the Body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc.
body?: Word.Interfaces.BodyData;
Property Value
Remarks
contentControls
Gets the collection of ContentControl objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc.
contentControls?: Word.Interfaces.ContentControlData[];
Property Value
Remarks
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.
saved?: boolean;
Property Value
boolean
Remarks
sections
Gets the collection of Section objects in the document.
sections?: Word.Interfaces.SectionData[];