Document Properties

The Document type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAttachedTemplate
Gets or sets the full path of the template attached to the document.
Public propertyCode exampleAutomaticallyUpdateSyles
Gets or sets a flag indicating whether the styles in the document are updated to match the styles in the attached template each time the document is opened in MS Word.
Public propertyCode exampleBackgroundShape
Gets or sets the background shape of the document. Can be null.
(Inherited from DocumentBase.)
Public propertyCode exampleBuiltInDocumentProperties
Returns a collection that represents all the built-in document properties of the document.
Public propertyCode exampleChildNodes
Gets all immediate child nodes of this node.
(Inherited from CompositeNode.)
Public propertyCode exampleCompatibilityOptions
Provides access to document compatibility options (that is, the user preferences entered on the Compatibility tab of the Options dialog in Word).
Public propertyCode exampleCompliance
Gets the OOXML compliance version determined from the loaded document content. Makes sense only for OOXML documents.
Public propertyCode exampleCount
Gets the number of immediate children of this node.
(Inherited from CompositeNode.)
Public propertyCode exampleCustomDocumentProperties
Returns a collection that represents all the custom document properties of the document.
Public propertyCode exampleCustomXmlParts
Gets or sets the collection of Custom XML Data Storage Parts.
Public propertyCode exampleDefaultTabStop
Gets or sets the interval (in points) between the default tab stops.
Public propertyCode exampleDigitalSignatures
Gets the collection of digital signatures for this document and their validation results.
Public propertyCode exampleDocument
Gets the document to which this node belongs.
(Inherited from Node.)
Public propertyCode exampleEndnoteOptions
Provides options that control numbering and positioning of endnotes in this document.
Public propertyCode exampleFieldOptions
Gets a FieldOptions object that represents options to control field handling in the document.
Public propertyCode exampleFirstChild
Gets the first child of the node.
(Inherited from CompositeNode.)
Public propertyCode exampleFirstSection
Gets the first section in the document.
Public propertyCode exampleFontInfos
Provides access to properties of fonts used in this document.
(Inherited from DocumentBase.)
Public propertyCode exampleFontSettings
Gets or sets document font settings.
Public propertyCode exampleFootnoteOptions
Provides options that control numbering and positioning of footnotes in this document.
Public propertyCode exampleGlossaryDocument
Gets or sets the glossary document within this document or template. A glossary document is a storage for AutoText, AutoCorrect and Building Block entries defined in a document.
Public propertyCode exampleHasChildNodes
Returns true if this node has any child nodes.
(Inherited from CompositeNode.)
Public propertyCode exampleHasMacros
Returns true if the document has a VBA project (macros).
Public propertyCode exampleHasRevisions
Returns true if the document has any tracked changes.
Public propertyCode exampleHyphenationOptions
Provides access to document hyphenation options.
Public propertyCode exampleIsComposite
Returns true as this node can have child nodes.
(Inherited from CompositeNode.)
Public propertyCode exampleLastChild
Gets the last child of the node.
(Inherited from CompositeNode.)
Public propertyCode exampleLastSection
Gets the last section in the document.
Public propertyCode exampleLayoutOptions
Gets a LayoutOptions object that represents options to control the layout process of this document.
Public propertyCode exampleLists
Provides access to the list formatting used in the document.
(Inherited from DocumentBase.)
Public propertyCode exampleMailMerge
Returns a MailMerge object that represents the mail merge functionality for the document.
Public propertyCode exampleMailMergeSettings
Gets or sets the object that contains all of the mail merge information for a document.
Public propertyCode exampleNextSibling
Gets the node immediately following this node.
(Inherited from Node.)
Public propertyCode exampleNodeChangingCallback
Called when a node is inserted or removed in the document.
(Inherited from DocumentBase.)
Public propertyCode exampleNodeType
Returns NodeType.Document.
(Overrides NodeNodeType.)
Public propertyCode exampleOriginalFileName
Gets the original file name of the document.
Public propertyCode exampleOriginalLoadFormat
Gets the format of the original document that was loaded into this object.
Public propertyCode examplePackageCustomParts
Gets or sets the collection of custom parts (arbitrary content) that are linked to the OOXML package using "unknown relationships".
Public propertyCode examplePageColor
Gets or sets the page color of the document. This property is a simpler version of BackgroundShape.
(Inherited from DocumentBase.)
Public propertyCode examplePageCount
Gets the number of pages in the document as calculated by the most recent page layout operation.
Public propertyCode exampleParentNode
Gets the immediate parent of this node.
(Inherited from Node.)
Public propertyCode examplePreviousSibling
Gets the node immediately preceding this node.
(Inherited from Node.)
Public propertyCode exampleProtectionType
Gets the currently active document protection type.
Public propertyCode exampleRange
Returns a Range object that represents the portion of a document that is contained in this node.
(Inherited from Node.)
Public propertyCode exampleRemovePersonalInformation
Gets or sets a flag indicating that Microsoft Word will remove all user information from comments, revisions and document properties upon saving the document.
Public propertyCode exampleResourceLoadingCallback
Allows to control how external resources are loaded.
(Inherited from DocumentBase.)
Public propertyCode exampleRevisions
Gets a collection of revisions (tracked changes) that exist in this document.
Public propertyRevisionsView
Gets or sets a value indicating whether to work with the original or revised version of a document.
Public propertyCode exampleSections
Returns a collection that represents all sections in the document.
Public propertyCode exampleShadeFormData
Specifies whether to turn on the gray shading on form fields.
Public propertyCode exampleStyles
Returns a collection of styles defined in the document.
(Inherited from DocumentBase.)
Public propertyCode exampleTheme
Gets the Theme object for this document.
Public propertyCode exampleTrackRevisions
True if changes are tracked when this document is edited in Microsoft Word.
Public propertyCode exampleVariables
Returns the collection of variables added to a document or template.
Public propertyCode exampleVbaProject
Gets or sets a VbaProject.
Public propertyCode exampleVersionsCount
Gets the number of document versions that was stored in the DOC document.
Public propertyCode exampleViewOptions
Provides options to control how the document is displayed in Microsoft Word.
Public propertyCode exampleWarningCallback
Called during various document processing procedures when an issue is detected that might result in data or formatting fidelity loss.
(Inherited from DocumentBase.)
Public propertyWebExtensionTaskPanes
Returns a collection that represents a list of task pane add-ins.
Public propertyCode exampleWriteProtection
Provides access to the document write protection options.
See Also