body | Body | read-only |
layout | DocumentLayout | read-only Renderer-backed headless extensions; not part of Microsoft’s OfficeJS surface. |
sections | SectionCollection<Section> | read-only |
session | DocxSession | read-only |
activeTheme | string | read-only office.js Document.activeTheme: the theme part’s name (“Office Theme”); "" with no theme. |
activeThemeDisplayName | string | read-only |
areTrueTypeFontsEmbedded | boolean | w:embedTrueTypeFonts: the faces stored with embedFont travel with the file. |
background | DocumentBackground | read-only office.js Document.background: the page colour, through a ShapeFill-shaped fill. |
bookmarks | HandleCollection<Bookmark> | read-only office.js Document.bookmarks: the main story’s bookmarks as a live HandleCollection<Bookmark>, not a BookmarkCollection. Excludes bookmarks whose names begin with _, such as Word’s _Toc… and _GoBack. Use Range.getBookmarks(true, …) to include them. |
builtInDocumentProperties | DocumentProperties | read-only office.js Document.builtInDocumentProperties: the handle properties returns. |
changeTrackingMode | ”Off” | “TrackAll” | “TrackMineOnly” | Read this right after open: a file carrying w:trackRevisions opens as “TrackAll”, and every edit is then authored as a redline until the mode is set to “Off”. |
comments | CommentCollection | read-only |
compatibilityMode | CompatibilityMode | read-only The layout generation Word lays the file out with (w:compatSetting compatibilityMode). |
content | Range | read-only office.js Document.content: the whole main story as one live Range — every body paragraph, table-cell paragraphs included, covered WHOLE. Edits through it are ordinary Range edits: insertText(text, "End") lands at the end of the last body paragraph. |
contentControls | ContentControlCollection | read-only |
customDocumentProperties | CustomPropertyCollection | read-only The docProps/custom.xml door. It is REAL and live — read, write, add and delete — but its SHAPE diverges: office.js types it as a second DocumentProperties, while OfficeJS here answers with the keyed CustomPropertyCollection that properties.customProperties returns. |
customXmlParts | CustomXmlPartCollection | read-only |
documentDefaults | DocumentDefaults | read-only Extension: w:docDefaults, the font and paragraph format under every style. |
documentTheme | DocumentTheme | read-only Extension (VBA Document.DocumentTheme): the theme’s colour and font schemes. |
editVersion | number | read-only Monotonic count of registered edits — the one-step no-op detector. Compare before and after a verb: an unchanged count means nothing was registered for save, so the verb did not touch the document. |
fields | FieldCollection | read-only office.js Document.fields: the MAIN TEXT STORY’s fields, the scope VBA’s Document.Fields has. A field authored in a HEADER, FOOTER, FOOTNOTE, ENDNOTE or TEXTBOX is in another story and is NOT here — read it through that story’s own body. |
frames | FrameCollection | read-only office.js Document.frames: the main story’s text frames (w:framePr), drop caps aside. |
hyperlinks | HandleCollection<Hyperlink> | read-only office.js Document.hyperlinks: the main story’s links as a live HandleCollection<Hyperlink>, not a HyperlinkCollection. Same story scope and same membership as Range.hyperlinks over the whole story. |
indexes | IndexCollection | read-only |
justificationMode | JustificationMode | w:characterSpacingControl: doNotCompress, compressPunctuation, compressPunctuationAndJapaneseKana. |
listParagraphs | ParagraphCollection<Paragraph> | read-only office.js Document.listParagraphs: every main-story paragraph that carries list numbering, in DOCUMENT ORDER, as a live ParagraphCollection. Membership is the door Body.lists and Range.lists use, so the two always agree: DIRECT w:pPr/w:numPr first, else the numbering the paragraph’s STYLE CHAIN carries — a Heading whose style numbers it counts here with no direct markup of its own. w:numId 0 means “no list” and is excluded, as Word treats it. |
lists | HandleCollection<List> | read-only Unique lists represented in the main document body scope. |
paragraphs | ParagraphCollection<Paragraph> | read-only Main-story paragraphs; table-cell paragraphs remain cell-scoped. |
properties | DocumentProperties | read-only Package metadata: docProps/core.xml, docProps/app.xml, docProps/custom.xml. |
protectionType | ProtectionType | read-only |
removePersonalInformationOnSave | boolean | |
revisionAuthor | string | Extension (VBA Application.UserName): the author stamped on new tracked changes and comments. |
revisionDate | Date | undefined | Extension: pins the w:date of new revisions and comments; unset stamps the current time. |
revisions | RevisionCollection | read-only |
styles | DocumentStyle[] | read-only Snapshot of the styles part: every defined style’s id, name, and type. |
tableOfAuthoritiesCategories | TableOfAuthoritiesCategoryCollection | read-only |
tables | TableCollection<Table> | read-only Top-level tables in the main document body. |
tablesOfAuthorities | TableOfAuthoritiesCollection | read-only |
tablesOfContents | TableOfContentsCollection | read-only |
tablesOfFigures | TableOfFiguresCollection | read-only |
trackedChangesAreDateAndTimeRemoved | boolean | read-only |
trackMoves | boolean | Word’s Track Moves option (w:doNotTrackMoves): off, Paragraph.moveTo records a deletion and an insertion. |
trackRevisions | boolean | |
type | ”Document” | read-only |
watermark | TextWatermark | null | read-only Extension (Design > Watermark): the text watermark the first header carries, or null. |