Document Object Members

Word Developer Reference

Represents a document. The Document object is a member of the Documents collection. The Documents collection contains all the Document objects that are currently open in Word.

Methods

  Name Description
Bb257531.methods(en-us,office.12).gif AcceptAllRevisions Accepts all tracked changes in the specified document.
Bb257531.methods(en-us,office.12).gif AcceptAllRevisionsShown Accepts all revisions in the specified document that are displayed on the screen.
Bb257531.methods(en-us,office.12).gif Activate Activates the specified document so that it becomes the active document.
Bb257531.methods(en-us,office.12).gif AddToFavorites Creates a shortcut to the document or hyperlink and adds it to the Favorites folder.
Bb257531.methods(en-us,office.12).gif ApplyDocumentTheme Applies a document theme to a document.
Bb257531.methods(en-us,office.12).gif ApplyQuickStyleSet Changes the set of quick styles listed.
Bb257531.methods(en-us,office.12).gif ApplyTheme Applies a theme to an open document.
Bb257531.methods(en-us,office.12).gif AutoFormat Automatically formats a document.
Bb257531.methods(en-us,office.12).gif AutoSummarize Creates an automatic summary of the specified document, and returns a Range object.
Bb257531.methods(en-us,office.12).gif CanCheckin True if Microsoft Word can check in a specified document to a server. Read/write Boolean.
Bb257531.methods(en-us,office.12).gif CheckConsistency Searches all text in a Japanese language document and displays instances where character usage is inconsistent for the same words.
Bb257531.methods(en-us,office.12).gif CheckGrammar Begins a spelling and grammar check for the specified document or range.
Bb257531.methods(en-us,office.12).gif CheckIn Returns a document from a local computer to a server, and sets the local document to read-only so that it cannot be edited locally.
Bb257531.methods(en-us,office.12).gif CheckNewSmartTags Accesses the Microsoft Office Web site for available smart tag recognizer and action files.
Bb257531.methods(en-us,office.12).gif CheckSpelling Begins a spelling check for the specified document or range.
Bb257531.methods(en-us,office.12).gif Close Closes the specified document.
Bb257531.methods(en-us,office.12).gif ClosePrintPreview Switches the specified document from print preview to the previous view.
Bb257531.methods(en-us,office.12).gif Compare Displays revision marks that indicate where the specified document differs from another document.
Bb257531.methods(en-us,office.12).gif ComputeStatistics Returns a statistic based on the contents of the specified document. Long.
Bb257531.methods(en-us,office.12).gif Convert Converts file to the newest file format and enables all new features.
Bb257531.methods(en-us,office.12).gif ConvertNumbersToText Changes the list numbers and LISTNUM fields in the specified Document to text.
Bb257531.methods(en-us,office.12).gif ConvertVietDoc Reconverts a Vietnamese document to Unicode using a code page other than the default.
Bb257531.methods(en-us,office.12).gif CopyStylesFromTemplate Copies styles from the specified template to a document.
Bb257531.methods(en-us,office.12).gif CountNumberedItems Returns the number of bulleted or numbered items and LISTNUM fields in the specified Document object.
Bb257531.methods(en-us,office.12).gif CreateLetterContent Creates and returns a LetterContent object based on the specified letter elements. LetterContent object.
Bb257531.methods(en-us,office.12).gif DataForm Displays the Data Form dialog box, in which you can add, delete, or modify records.
Bb257531.methods(en-us,office.12).gif DeleteAllComments Deletes all comments from the Comments collection in a document.
Bb257531.methods(en-us,office.12).gif DeleteAllCommentsShown Deletes all revisions in a specified document that are displayed on the screen.
Bb257531.methods(en-us,office.12).gif DeleteAllEditableRanges Deletes permissions in all ranges for which the specified user or group of users has permission to modify.
Bb257531.methods(en-us,office.12).gif DeleteAllInkAnnotations Deletes all handwritten ink annotations in a document.
Bb257531.methods(en-us,office.12).gif DetectLanguage Analyzes the specified text to determine the language that it is written in.
Bb257531.methods(en-us,office.12).gif DowngradeDocument Downgrades a document to the Word 97-2003 document format so that it can be edited in a previous version of Microsoft Office Word.
Bb257531.methods(en-us,office.12).gif EndReview Terminates a review of a file that has been sent for review using the SendForReview method or that has been automatically placed in a review cycle by sending a document to another user in an e-mail message.
Bb257531.methods(en-us,office.12).gif ExportAsFixedFormat Saves a document as PDF or XPS format.
Bb257531.methods(en-us,office.12).gif FitToPages Decreases the font size of text just enough so that the document will fit on one fewer pages.
Bb257531.methods(en-us,office.12).gif FollowHyperlink Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.
Bb257531.methods(en-us,office.12).gif ForwardMailer You have requested Help for a Visual Basic keyword used only on the Macintosh. For information about the ForwardMailer method for the Document object, consult the language reference Help included with Microsoft Office Macintosh Edition.
Bb257531.methods(en-us,office.12).gif FreezeLayout In Web view, fixes the layout of the document as it currently appears so that line breaks remain fixed and ink annotations do not move when you resize the window.
Bb257531.methods(en-us,office.12).gif GetCrossReferenceItems Returns an array of items that can be cross-referenced based on the specified cross-reference type.
Bb257531.methods(en-us,office.12).gif GetLetterContent Retrieves letter elements from the specified document and returns a LetterContent object.
Bb257531.methods(en-us,office.12).gif GetWorkflowTasks Returns a WorkflowTasks collection that represents the workflow tasks assigned to a document.
Bb257531.methods(en-us,office.12).gif GetWorkflowTemplates Returns a WorkflowTemplates collection that represents the workflow templates attached to a document.
Bb257531.methods(en-us,office.12).gif GoTo Returns a Range object that represents the start position of the specified item, such as a page, bookmark, or field.
Bb257531.methods(en-us,office.12).gif LockServerFile Locks the file on the server preventing anyone else from editing it.
Bb257531.methods(en-us,office.12).gif MakeCompatibilityDefault Sets the compatibility options.
Bb257531.methods(en-us,office.12).gif ManualHyphenation Initiates manual hyphenation of a document, one line at a time.
Bb257531.methods(en-us,office.12).gif Merge Merges the changes marked with revision marks from one document to another.
Bb257531.methods(en-us,office.12).gif Post Posts the specified document to a public folder in Microsoft Exchange.
Bb257531.methods(en-us,office.12).gif PresentIt Opens PowerPoint with the specified Word document loaded.
Bb257531.methods(en-us,office.12).gif PrintOut Prints all or part of the specified document.
Bb257531.methods(en-us,office.12).gif PrintPreview Switches the view to print preview.
Bb257531.methods(en-us,office.12).gif Protect Returns or sets the protection type for the document associated with the specified routing slip. Read/write WdProtectionType.
Bb257531.methods(en-us,office.12).gif Range Returns a Range object by using the specified starting and ending character positions.
Bb257531.methods(en-us,office.12).gif RecheckSmartTags Removes smart tags recognized by the grammar checker and rechecks the document content against all smart tag recognizers.
Bb257531.methods(en-us,office.12).gif Redo Redoes the last action that was undone (reverses the Undo method). Returns True if the actions were redone successfully.
Bb257531.methods(en-us,office.12).gif RejectAllRevisions Rejects all tracked changes in the specified document.
Bb257531.methods(en-us,office.12).gif RejectAllRevisionsShown Rejects all revisions in a document that are displayed on the screen.
Bb257531.methods(en-us,office.12).gif Reload Reloads a cached document by resolving the hyperlink to the document and downloading it.
Bb257531.methods(en-us,office.12).gif ReloadAs Reloads a document based on an HTML document, using the specified document encoding.
Bb257531.methods(en-us,office.12).gif RemoveDocumentInformation Removes sensitive information, properties, comments, and other metadata from a document.
Bb257531.methods(en-us,office.12).gif RemoveLockedStyles Purges a document of locked styles when formatting restrictions have been applied in a document.
Bb257531.methods(en-us,office.12).gif RemoveNumbers Removes numbers or bullets from the specified document.
Bb257531.methods(en-us,office.12).gif RemoveSmartTags Removes all smart tag information from a document.
Bb257531.methods(en-us,office.12).gif RemoveTheme Removes the active theme from the current document.
Bb257531.methods(en-us,office.12).gif Repaginate Repaginates the entire document.
Bb257531.methods(en-us,office.12).gif Reply Opens a new e-mail message — with the sender's address on the To line — for replying to the active message.
Bb257531.methods(en-us,office.12).gif ReplyAll Opens a new e-mail message—with the sender’s and all other recipients' addresses on the To and Cc lines, as appropriate—for replying to the active message.
Bb257531.methods(en-us,office.12).gif ReplyWithChanges Sends an e-mail message to the author of a document that has been sent out for review, notifying them that a reviewer has completed review of the document.
Bb257531.methods(en-us,office.12).gif ResetFormFields Clears all form fields in a document, preparing the form to be filled in again.
Bb257531.methods(en-us,office.12).gif RunAutoMacro Runs an auto macro that's stored in the specified document. If the specified auto macro doesn't exist, nothing happens.
Bb257531.methods(en-us,office.12).gif RunLetterWizard Runs the Letter Wizard on the specified document.
Bb257531.methods(en-us,office.12).gif Save Saves all the documents in the Documents collection.
Bb257531.methods(en-us,office.12).gif SaveAs Saves the specified document with a new name or format. Some of the arguments for this method correspond to the options in the Save As dialog box (File menu).
Bb257531.methods(en-us,office.12).gif SaveAsQuickStyleSet Saves the group of quick styles currently in use.
Bb257531.methods(en-us,office.12).gif Select Selects the contents of the specified document.
Bb257531.methods(en-us,office.12).gif SelectAllEditableRanges Selects all ranges for which the specified user or group of users has permission to modify.
Bb257531.methods(en-us,office.12).gif SelectContentControlsByTag Returns a ContentControls collection that represents all the content controls in a document with the tag value specified in the Tag parameter. Read-only.
Bb257531.methods(en-us,office.12).gif SelectContentControlsByTitle Returns a ContentControls collection that represents all the content controls in a document with the title specified in the Title parameter. Read-only.
Bb257531.methods(en-us,office.12).gif SelectLinkedControls Returns a ContentControls collection that represents all content controls in a document that are linked to the specific custom XML node in the document's XML data store as specified by the Node parameter. Read-only.
Bb257531.methods(en-us,office.12).gif SelectNodes Returns an XMLNodes collection that represents all the nodes that match the XPath parameter in the order in which they appear in the document or range.
Bb257531.methods(en-us,office.12).gif SelectSingleNode Returns an XMLNode object that represents the first node that matches the XPath parameter in the specified document.
Bb257531.methods(en-us,office.12).gif SelectUnlinkedControls Returns a ContentControls collection that represents all content controls in a document that are not linked to an XML node in the document's XML data store. Read-only.
Bb257531.methods(en-us,office.12).gif SendFax Sends the specified document as a fax, without any user interaction.
Bb257531.methods(en-us,office.12).gif SendFaxOverInternet Sends a document to a fax service provider, who faxes the document to one or more specfied recipients.
Bb257531.methods(en-us,office.12).gif SendForReview Sends a document in an e-mail message for review by the specified recipients.
Bb257531.methods(en-us,office.12).gif SendMail Opens a message window for sending the specified document through Microsoft Exchange.
Bb257531.methods(en-us,office.12).gif SendMailer You have requested Help for a Visual Basic keyword used only on the Macintosh. For information about the SendMailer method for the Document object, consult the language reference Help included with Microsoft Office Macintosh Edition.
Bb257531.methods(en-us,office.12).gif SetDefaultTableStyle Specifies the table style to use for newly created tables in a document.
Bb257531.methods(en-us,office.12).gif SetLetterContent Inserts the contents of the specified LetterContent object into a document.
Bb257531.methods(en-us,office.12).gif SetPasswordEncryptionOptions Sets the options Microsoft Word uses for encrypting documents with passwords.
Bb257531.methods(en-us,office.12).gif ToggleFormsDesign Switches form design mode on or off.
Bb257531.methods(en-us,office.12).gif TransformDocument Applies the specified Extensible Stylesheet Language Transformation (XSLT) file to the specified document and replaces the document with the results.
Bb257531.methods(en-us,office.12).gif Undo Undoes the last action or a sequence of actions, which are displayed in the Undo list. Returns True if the actions were successfully undone.
Bb257531.methods(en-us,office.12).gif UndoClear Clears the list of actions that can be undone for the specified document.
Bb257531.methods(en-us,office.12).gif Unprotect Removes protection from the specified document.
Bb257531.methods(en-us,office.12).gif UpdateStyles Copies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.
Bb257531.methods(en-us,office.12).gif UpdateSummaryProperties Updates the keyword and comment text in the Properties dialog box (File menu) to reflect the AutoSummary content for the specified document.
Bb257531.methods(en-us,office.12).gif ViewCode Displays the code window for the selected Microsoft ActiveX control in the specified document.
Bb257531.methods(en-us,office.12).gif ViewPropertyBrowser Displays the property window for the selected Microsoft ActiveX control in the specified document.
Bb257531.methods(en-us,office.12).gif WebPagePreview Displays a preview of the current document as it would look if saved as a Web page.

Properties

  Name Description
Bb257531.properties(en-us,office.12).gif ActiveTheme Returns the name of the active theme plus the theme formatting options for the specified document. Read-only String.
Bb257531.properties(en-us,office.12).gif ActiveThemeDisplayName Returns the display name of the active theme for the specified document. Read-only String.
Bb257531.properties(en-us,office.12).gif ActiveWindow Returns a Window object that represents the active window (the window with the focus). Read-only.
Bb257531.properties(en-us,office.12).gif ActiveWritingStyle Returns or sets the writing style for a specified language in the specified document. Read/write String.
Bb257531.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb257531.properties(en-us,office.12).gif AttachedTemplate Returns a Template object that represents the template attached to the specified document. Read/write Variant.
Bb257531.properties(en-us,office.12).gif AutoFormatOverride Returns or sets a Boolean that represents whether automatic formatting options override formatting restrictions in a document where formatting restrictions are in effect.
Bb257531.properties(en-us,office.12).gif AutoHyphenation True if automatic hyphenation is turned on for the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Background Returns a Shape object that represents the background image for the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Bibliography Returns a Bibliography object that represents the bibliography references contained within a document. Read-only.
Bb257531.properties(en-us,office.12).gif Bookmarks Returns a Bookmarks collection that represents all the bookmarks in a document. Read-only.
Bb257531.properties(en-us,office.12).gif BuiltInDocumentProperties Returns a DocumentProperties collection that represents all the built-in document properties for the specified document.
Bb257531.properties(en-us,office.12).gif Characters Returns a Characters collection that represents the characters in a document. Read-only.
Bb257531.properties(en-us,office.12).gif ChildNodeSuggestions Returns an XMLChildNodeSuggestions collection that represents the list of allowed elements for the document.
Bb257531.properties(en-us,office.12).gif ClickAndTypeParagraphStyle Returns or sets the default paragraph style applied to text by the Click and Type feature in the specified document. Read/write Variant.
Bb257531.properties(en-us,office.12).gif CodeName Returns the code name for the specified document. Read-only String.
Bb257531.properties(en-us,office.12).gif CommandBars Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.
Bb257531.properties(en-us,office.12).gif Comments Returns a Comments collection that represents all the comments in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Compatibility True if the compatibility option specified by the Type argument is enabled. Compatibility options affect how a document is displayed in Microsoft Word. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif ConsecutiveHyphensLimit Returns or sets the maximum number of consecutive lines that can end with hyphens. Read/write. Long.
Bb257531.properties(en-us,office.12).gif Container Returns the object that represents the container application for the specified document. Read-only Object.
Bb257531.properties(en-us,office.12).gif Content Returns a Range object that represents the main document story. Read-only.
Bb257531.properties(en-us,office.12).gif ContentControls Returns a ContentControls collection that represents all the content controls in a document. Read-only.
Bb257531.properties(en-us,office.12).gif ContentTypeProperties Returns a MetaProperties collection that represents the metadata stored in a document, such as author name, subject, and company. Read-only.
Bb257531.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb257531.properties(en-us,office.12).gif CurrentRsid Returns a Long that represents a random number that Word assigns to changes in a document. Read-only.
Bb257531.properties(en-us,office.12).gif CustomDocumentProperties Returns a DocumentProperties collection that represents all the custom document properties for the specified document.
Bb257531.properties(en-us,office.12).gif CustomXMLParts Returns a CustomXMLParts collection that represents the custom XML in the XML data store. Read-only.
Bb257531.properties(en-us,office.12).gif DefaultTableStyle Returns a Variant that represents the table style that is applied to all newly created tables in a document. Read-only.
Bb257531.properties(en-us,office.12).gif DefaultTabStop Returns or sets the interval (in points) between the default tab stops in the specified document. Read/write Single.
Bb257531.properties(en-us,office.12).gif DefaultTargetFrame Returns or sets a String indicating the browser frame in which to display a Web page reached through a hyperlink. Read/write.
Bb257531.properties(en-us,office.12).gif DisableFeatures True disables all features introduced after the version specified in the DisableFeaturesIntroducedAfter property. The default value is False. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif DisableFeaturesIntroducedAfter Disables all features introduced after a specified version of Microsoft Word in the document only. Read/write WdDisableFeaturesIntroducedAfter.
Bb257531.properties(en-us,office.12).gif DocumentInspectors Returns a DocumentInspectors collection that enables you to locate hidden personal information, such as author name, company name, and revision date. Read-only.
Bb257531.properties(en-us,office.12).gif DocumentLibraryVersions Returns a DocumentLibraryVersions collection that represents the collection of versions of a shared document that has versioning enabled and that is stored in a document library on a server.
Bb257531.properties(en-us,office.12).gif DocumentTheme Returns an OfficeTheme object that represents the Microsoft Office theme applied to a document. Read-only.
Bb257531.properties(en-us,office.12).gif DoNotEmbedSystemFonts True for Microsoft Word to not embed common system fonts. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Email Returns an Email object that contains all the e-mail–related properties of the current document. Read-only.
Bb257531.properties(en-us,office.12).gif EmbedLinguisticData True for Microsoft Word to embed speech and handwriting so that data can be converted back to speech or handwriting. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif EmbedSmartTags True for Microsoft Word to save the smart tag information in a document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif EmbedTrueTypeFonts True if Microsoft Office Word embeds TrueType fonts in a document when it is saved. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif EncryptionProvider Returns a String specifying the name of the algorithm encryption provider that Microsoft Office Word uses when encrypting documents. Read/write.
Bb257531.properties(en-us,office.12).gif Endnotes Returns an Endnotes collection that represents all the endnotes in a document. Read-only.
Bb257531.properties(en-us,office.12).gif EnforceStyle Returns or sets a Boolean that represents whether formatting restrictions are enforced in a protected document.
Bb257531.properties(en-us,office.12).gif Envelope Returns an Envelope object that represents an envelope and envelope features in a document. Read-only.
Bb257531.properties(en-us,office.12).gif FarEastLineBreakLanguage Returns or sets a WdFarEastLineBreakLanguageID that represents the East Asian language to use when breaking lines of text in the specified document or template. Read/write.
Bb257531.properties(en-us,office.12).gif FarEastLineBreakLevel Returns or sets a WdFarEastLineBreakLevel that represents the line break control level for the specified document. Read/write.
Bb257531.properties(en-us,office.12).gif Fields Returns a Fields collection that represents all the fields in the document. Read-only.
Bb257531.properties(en-us,office.12).gif Final Returns or sets a Boolean that indicates whether a document is final. Read/write.
Bb257531.properties(en-us,office.12).gif Footnotes Returns a Footnotes collection that represents all the footnotes in a document. Read-only.
Bb257531.properties(en-us,office.12).gif FormattingShowClear True for Microsoft Word to show clear formatting in the Styles and Formatting task pane. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif FormattingShowFilter Sets or returns a WdShowFilter constant that represents the styles and formatting displayed in the Styles and Formatting task pane. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif FormattingShowFont True for Microsoft Word to display font formatting in the Styles and Formatting task pane. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif FormattingShowNextLevel Returns or sets a Boolean that represents whether Microsoft Office Word shows the next heading level when the previous heading level is used. Read/write.
Bb257531.properties(en-us,office.12).gif FormattingShowNumbering True for Microsoft Word to display number formatting in the Styles and Formatting task pane. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif FormattingShowParagraph True for Microsoft Word to display paragraph formatting in the Styles and Formatting task pane. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif FormattingShowUserStyleName Returns or sets a Boolean that represents whether to show user-defined styles. Read/write.
Bb257531.properties(en-us,office.12).gif FormFields Returns a FormFields collection that represents all the form fields in the document. Read-only.
Bb257531.properties(en-us,office.12).gif FormsDesign True if the specified document is in form design mode. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif Frames Returns a Frames collection that represents all the frames in a document. Read-only.
Bb257531.properties(en-us,office.12).gif Frameset Returns a Frameset object that represents an entire frames page or a single frame on a frames page. Read-only.
Bb257531.properties(en-us,office.12).gif FullName Returns a String that represents the name of a document, including the path. Read-only.
Bb257531.properties(en-us,office.12).gif GrammarChecked True if a grammar check has been run on the specified range or document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif GrammaticalErrors Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif GridDistanceHorizontal Returns or sets a Single that represents the amount of horizontal space between the invisible gridlines that Microsoft Word uses when you draw, move, and resize AutoShapes or East Asian characters in the specified document. Read/write.
Bb257531.properties(en-us,office.12).gif GridDistanceVertical Returns or sets a Single that represents the amount of vertical space between the invisible gridlines that Microsoft Word uses when you draw, move, and resize AutoShapes or East Asian characters in the specified document. Read/write.
Bb257531.properties(en-us,office.12).gif GridOriginFromMargin True if Microsoft Word starts the character grid from the upper-left corner of the page. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif GridOriginHorizontal Returns or sets a Single that represents the point, relative to the left edge of the page, where you want the invisible grid for drawing, moving, and resizing AutoShapes or East Asian characters to begin in the specified document. Read/write.
Bb257531.properties(en-us,office.12).gif GridOriginVertical Returns or sets a Single that represents the point, relative to the top of the page, where you want the invisible grid for drawing, moving, and resizing AutoShapes or East Asian characters to begin in the specified document. Read/write.
Bb257531.properties(en-us,office.12).gif GridSpaceBetweenHorizontalLines Returns or sets the interval at which Microsoft Word displays horizontal character gridlines in print layout view. Read/write Long.
Bb257531.properties(en-us,office.12).gif GridSpaceBetweenVerticalLines Returns or sets the interval at which Microsoft Word displays vertical character gridlines in print layout view. Read/write Long.
Bb257531.properties(en-us,office.12).gif HasMailer You have requested Help for a Visual Basic keyword used only on the Macintosh. For information about the HasMailer property for the Document object, consult the language reference Help included with Microsoft Office Macintosh Edition.
Bb257531.properties(en-us,office.12).gif HasPassword True if a password is required to open the specified document. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif HasVBProject Returns a Boolean that represents whether a document has an attached Microsoft Visual Basic for Applications project. Read-only.
Bb257531.properties(en-us,office.12).gif HTMLDivisions Returns an HTMLDivisions collection that represents the HTML DIV elements in a Web document.
Bb257531.properties(en-us,office.12).gif Hyperlinks Returns a Hyperlinks collection that represents all the hyperlinks in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif HyphenateCaps True if words in all capital letters can be hyphenated. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif HyphenationZone Returns or sets the width of the hyphenation zone, in points. Read/write Long.
Bb257531.properties(en-us,office.12).gif Indexes Returns an Indexes collection that represents all the indexes in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif InlineShapes Returns an InlineShapes collection that represents all the InlineShape objects in a document. Read-only.
Bb257531.properties(en-us,office.12).gif IsMasterDocument True if the specified document is a master document. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif IsSubdocument True if the specified document is a subdocument of a master document. Read-only Boolean
Bb257531.properties(en-us,office.12).gif JustificationMode Returns or sets the character spacing adjustment for the specified document. Read/write WdJustificationMode.
Bb257531.properties(en-us,office.12).gif KerningByAlgorithm True if Microsoft Word kerns half-width Latin characters and punctuation marks in the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Kind Returns or sets the format type that Microsoft Office Word uses when automatically formatting the specified document. Read/write WdDocumentKind.
Bb257531.properties(en-us,office.12).gif LanguageDetected Returns or sets a value that specifies whether Microsoft Word has detected the language of the specified text. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif ListParagraphs Returns a ListParagraphsobject that represents all the numbered paragraphs in a document. Read-only.
Bb257531.properties(en-us,office.12).gif Lists Returns a Lists collection that contains all the formatted lists in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif ListTemplates Returns a ListTemplates collection that represents all the list formats for the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif LockQuickStyleSet Returns or sets a Boolean that represents whether users can change which set of Quick Styles is being used. Read/write.
Bb257531.properties(en-us,office.12).gif LockTheme Returns or sets a Boolean that represents whether a user can change a document theme. Read/write.
Bb257531.properties(en-us,office.12).gif MailEnvelope Returns an MsoEnvelope object that represents an e-mail header for a document.
Bb257531.properties(en-us,office.12).gif Mailer You have requested Help for a Visual Basic keyword used only on the Macintosh. For information about the Mailer property for the Document object, consult the language reference Help included with Microsoft Office Macintosh Edition.
Bb257531.properties(en-us,office.12).gif MailMerge Returns a MailMerge object that represents the mail merge functionality for the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Name Returns the name of the specified object. Read-only String.
Bb257531.properties(en-us,office.12).gif NoLineBreakAfter Returns or sets the kinsoku characters after which Microsoft Word will not break a line. Read/write String.
Bb257531.properties(en-us,office.12).gif NoLineBreakBefore Returns or sets the kinsoku characters before which Microsoft Word will not break a line. Read/write String.
Bb257531.properties(en-us,office.12).gif OMathBreakBin Returns or sets a WdOMathBreakBin constant that represents where Microsoft Office Word places binary operators when equations span two or more lines. Read/write.
Bb257531.properties(en-us,office.12).gif OMathBreakSub Returns or sets a WdOMathBreakSub constant that represents how Microsoft Office Word handles a subtraction operator that falls before a line break. Read/write.
Bb257531.properties(en-us,office.12).gif OMathFontName Returns or sets a String that represents the name of the font used in a document to display equations. Read/write.
Bb257531.properties(en-us,office.12).gif OMathIntSubSupLim Returns or sets a Boolean that represents the default location of limits for integrals. Read/write.
Bb257531.properties(en-us,office.12).gif OMathJc Returns or sets a WdOMathJc constant that represents the default justification—left, right, centered, or centered as a group—of a group of equations. Read/write.
Bb257531.properties(en-us,office.12).gif OMathLeftMargin Returns or sets a Single that represents the left margin for equations. Read/write.
Bb257531.properties(en-us,office.12).gif OMathNarySupSubLim Returns or sets a Boolean that represents the default location of limits for n-ary objects other than integrals. Read/write.
Bb257531.properties(en-us,office.12).gif OMathRightMargin Returns or sets a Single that represents the right margin for equations. Read/write.
Bb257531.properties(en-us,office.12).gif OMaths Returns an OMaths collection that represents the OMath objects within the specified range. Read-only.
Bb257531.properties(en-us,office.12).gif OMathSmallFrac Returns or sets a Boolean that represents whether to use small fractions in equations contained within the document. Read/write.
Bb257531.properties(en-us,office.12).gif OMathWrap Returns or sets a Single that represents the placement of the second line of an equation that wraps to a new line. Read/write.
Bb257531.properties(en-us,office.12).gif OpenEncoding Returns the encoding used to open the specified document. Read-only MsoEncoding.
Bb257531.properties(en-us,office.12).gif OptimizeForWord97 True if Microsoft Office Word optimizes the current document for viewing in Microsoft Word 97 by disabling any incompatible formatting. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif OriginalDocumentTitle Returns a String that represents the document title for the original document after running a legal-blackline document compare function. Read-only.
Bb257531.properties(en-us,office.12).gif PageSetup Returns a PageSetup object that is associated with the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Paragraphs Returns a Paragraphs collection that represents all the paragraphs in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified Document object.
Bb257531.properties(en-us,office.12).gif Password Sets a password that must be supplied to open the specified document. Write-only String.
Bb257531.properties(en-us,office.12).gif PasswordEncryptionAlgorithm Returns a String indicating the algorithm Microsoft Word uses for encrypting documents with passwords. Read-only.
Bb257531.properties(en-us,office.12).gif PasswordEncryptionFileProperties True if Microsoft Word encrypts file properties for password-protected documents. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif PasswordEncryptionKeyLength Returns a Long indicating the key length of the algorithm Microsoft Word uses when encrypting documents with passwords. Read-only.
Bb257531.properties(en-us,office.12).gif PasswordEncryptionProvider Returns a String specifying the name of the algorithm encryption provider that Microsoft Word uses when encrypting documents with passwords. Read-only.
Bb257531.properties(en-us,office.12).gif Path Returns the disk or Web path to the document. Read-only String.
Bb257531.properties(en-us,office.12).gif Permission Returns a Permission object that represents the permission settings in the specified document.
Bb257531.properties(en-us,office.12).gif PrintFormsData True if Microsoft Word prints onto a preprinted form only the data entered in the corresponding online form. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif PrintFractionalWidths True if the specified document is formatted to use fractional point spacing to display and print characters. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif PrintPostScriptOverText True if PRINT field instructions (such as PostScript commands) in a document are to be printed on top of text and graphics when a PostScript printer is used. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif PrintRevisions True if revision marks are printed with the document. False if revision marks aren't printed (that is, tracked changes are printed as if they'd been accepted). Read/write Boolean.
Bb257531.properties(en-us,office.12).gif ProtectionType Returns the protection type for the specified document. Can be one of the following WdProtectionType constants: wdAllowOnlyComments, wdAllowOnlyFormFields, wdAllowOnlyReading, wdAllowOnlyRevisions, or wdNoProtection.
Bb257531.properties(en-us,office.12).gif ReadabilityStatistics Returns a ReadabilityStatistics collection that represents the readability statistics for the specified document or range. Read-only.
Bb257531.properties(en-us,office.12).gif ReadingLayoutSizeX Sets or returns a Long that represents the width of pages in a document when it is displayed in reading layout view and is frozen for entering handwritten markup.
Bb257531.properties(en-us,office.12).gif ReadingLayoutSizeY Sets or returns a Long that represents the height of pages in a document when it is displayed in reading layout view and is frozen for entering handwritten markup.
Bb257531.properties(en-us,office.12).gif ReadingModeLayoutFrozen Sets or returns a Boolean that represents whether pages displayed in reading layout view are frozen to a specified size for inserting handwritten markup into a document.
Bb257531.properties(en-us,office.12).gif ReadOnly True if changes to the document cannot be saved to the original document. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif ReadOnlyRecommended True if Microsoft Office Word displays a message box whenever a user opens the document, suggesting that it be opened as read-only. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif RemoveDateAndTime Sets or returns a Boolean indicating whether a document stores the date and time metadata for tracked changes.
Bb257531.properties(en-us,office.12).gif RemovePersonalInformation True if Microsoft Word removes all user information from comments, revisions, and the Properties dialog box upon saving a document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Research Returns a Research object that represents the research service for a document. Read-only.
Bb257531.properties(en-us,office.12).gif RevisedDocumentTitle Returns a String that represents the document title for a revised document after running a legal-blackline document compare function. Read-only.
Bb257531.properties(en-us,office.12).gif Revisions Returns a Revisions collection that represents the tracked changes in the document or range. Read-only.
Bb257531.properties(en-us,office.12).gif Saved True if the specified document or template has not changed since it was last saved. False if Microsoft Word displays a prompt to save changes when the document is closed. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif SaveEncoding Returns or sets the encoding to use when saving a document. Read/write MsoEncoding.
Bb257531.properties(en-us,office.12).gif SaveFormat Returns the file format of the specified document or file converter. Read-only Long.
Bb257531.properties(en-us,office.12).gif SaveFormsData True if Microsoft Word saves the data entered in a form as a tab-delimited record for use in a database. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif SaveSubsetFonts True if Microsoft Word saves a subset of the embedded TrueType fonts with the document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Scripts Returns a Scripts collection that represents the collection of HTML scripts in the specified object.
Bb257531.properties(en-us,office.12).gif Sections Returns a Section collection that represents the sections in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Sentences Returns a Sentences collection that represents all the sentences in the document. Read-only.
Bb257531.properties(en-us,office.12).gif ServerPolicy Returns a ServerPolicy object that represents a policy specified for a document stored on a server running Microsoft Office SharePoint Server 2007. Read-only.
Bb257531.properties(en-us,office.12).gif Shapes Returns a Shapes collection that represents all the Shape objects in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif SharedWorkspace Returns a SharedWorkspace object that represents the Document Workspace in which a specified document is located.
Bb257531.properties(en-us,office.12).gif ShowGrammaticalErrors True if grammatical errors are marked by a wavy green line in the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif ShowRevisions True if tracked changes in the specified document are shown on the screen. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif ShowSpellingErrors True if Microsoft Word underlines spelling errors in the document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif ShowSummary True if an automatic summary is displayed for the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Signatures Returns a SignatureSet collection that represents the digital signatures for a document.
Bb257531.properties(en-us,office.12).gif SmartDocument Returns a SmartDocument object that represents the settings for a smart document solution.
Bb257531.properties(en-us,office.12).gif SmartTags Returns a SmartTags object that represents a smart tag in a document.
Bb257531.properties(en-us,office.12).gif SmartTagsAsXMLProps True for Microsoft Word to create an XML header containing smart tag information when a document containing smart tags is saved as HTML. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif SnapToGrid True if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif SnapToShapes True if Microsoft Word automatically aligns AutoShapes or East Asian characters with invisible gridlines that go through the vertical and horizontal edges of other AutoShapes or East Asian characters in the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif SpellingChecked True if spelling has been checked throughout the specified range or document. False if all or some of the range or document has not been checked for spelling. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif SpellingErrors Returns a ProofreadingErrors collection that represents the words identified as spelling errors in the specified document or range. Read-only.
Bb257531.properties(en-us,office.12).gif StoryRanges Returns a StoryRanges collection that represents all the stories in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif Styles Returns a Styles collection for the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif StyleSheets Returns a StyleSheets collection that represents the Web style sheets attached to a document.
Bb257531.properties(en-us,office.12).gif StyleSortMethod Returns or sets aWdStyleSort constant that represents the sort method to use when sorting styles in the Styles task pane. Read/write.
Bb257531.properties(en-us,office.12).gif Subdocuments Returns a Subdocuments collection that represents all the subdocuments in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif SummaryLength Returns or sets the length of the summary as a percentage of the document length. Read/write Long.
Bb257531.properties(en-us,office.12).gif SummaryViewMode Returns or sets the way a summary is displayed. Read/write WdSummaryMode.
Bb257531.properties(en-us,office.12).gif Sync Returns a Sync object that provides access to the methods and properties for documents that are part of a Document Workspace.
Bb257531.properties(en-us,office.12).gif Tables Returns a Table collection that represents all the tables in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif TablesOfAuthorities Returns a TableOfAuthorities collection that represents the tables of authorities in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif TablesOfAuthoritiesCategories Returns a TablesOfAuthoritiesCategories collection that represents the available table of authorities categories for the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif TablesOfContents Returns a TablesOfContents collection that represents the tables of contents in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif TablesOfFigures Returns a TablesOfFigures collection that represents the tables of figures in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif TextEncoding Returns or sets the code page, or character set, that Microsoft Word uses for a document saved as an encoded text file. Read/write MsoEncoding.
Bb257531.properties(en-us,office.12).gif TextLineEnding Returns or sets a WdLineEndingType constant indicating how Microsoft Word marks the line and paragraph breaks in documents saved as text files. Read/write.
Bb257531.properties(en-us,office.12).gif TrackFormatting Returns or sets a Boolean that represents whether to track formatting changes when change tracking is turned on. Read/write.
Bb257531.properties(en-us,office.12).gif TrackMoves Returns or sets a Boolean that represents whether to mark moved text when Track Changes is turned on. Read/write.
Bb257531.properties(en-us,office.12).gif TrackRevisions True if changes are tracked in the specified document. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Type Returns the document type (template or document). Read-only WdDocumentType.
Bb257531.properties(en-us,office.12).gif UpdateStylesOnOpen True if the styles in the specified document are updated to match the styles in the attached template each time the document is opened. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif UseMathDefaults Returns or sets a Boolean that represents whether to use the default math settings when creating new equations. Read/write.
Bb257531.properties(en-us,office.12).gif UserControl True if the document was created or opened by the user. Read/write Boolean.
Bb257531.properties(en-us,office.12).gif Variables Returns a Variables collection that represents the variables stored in the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif VBASigned True if the Microsoft Visual Basic for Applications (VBA) project for the specified document has been digitally signed. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif VBProject Returns the VBProject object for the specified template or document.
Bb257531.properties(en-us,office.12).gif WebOptions Returns the WebOptions object, which contains document-level attributes used by Microsoft Word when you save a document as a Web page or open a Web page. Read-only.
Bb257531.properties(en-us,office.12).gif Windows Returns a Windows collection that represents all windows for the specified document. Read-only.
Bb257531.properties(en-us,office.12).gif WordOpenXML Returns a String that represents the flat XML format for the Word Open XML contents of the document. Read-only.
Bb257531.properties(en-us,office.12).gif Words Returns a Words collection that represents all the words in a document. Read-only.
Bb257531.properties(en-us,office.12).gif WritePassword Sets a password for saving changes to the specified document. Write-only String.
Bb257531.properties(en-us,office.12).gif WriteReserved True if the specified document is protected with a write password. Read-only Boolean.
Bb257531.properties(en-us,office.12).gif XMLHideNamespaces Returns a Boolean that represents whether to hide the XML namespaces in the list of elements in the XML Structure task pane.
Bb257531.properties(en-us,office.12).gif XMLNodes Returns an XMLNodes collection that represents the collection of all XML elements within a document.
Bb257531.properties(en-us,office.12).gif XMLSaveDataOnly Sets or returns a Boolean that represents whether a document is saved with the XML markup or as text only.
Bb257531.properties(en-us,office.12).gif XMLSaveThroughXSLT Sets or returns a String that specifies the path and file name for the Extensible Stylesheet Language Transformation (XSLT) to apply when a user saves a document.
Bb257531.properties(en-us,office.12).gif XMLSchemaReferences Returns an XMLSchemaReferences collection that represents the schemas attached to a document.
Bb257531.properties(en-us,office.12).gif XMLSchemaViolations Returns an XMLNodes collection that represents all nodes in the document that have validation errors.
Bb257531.properties(en-us,office.12).gif XMLShowAdvancedErrors Returns or sets a Boolean that represents whether error message text is generated from the built-in Microsoft Word error messages or from the Microsoft XML Core Services (MSXML) 5.0 component included with Office.
Bb257531.properties(en-us,office.12).gif XMLUseXSLTWhenSaving Returns a Boolean that represents whether to save a document through an Extensible Stylesheet Language Transformation (XSLT). True saves a document through an XSLT.

Events

  Name Description
Bb257531.events(en-us,office.12).gif BuildingBlockInsert Occurs when you insert a building block into a document.
Bb257531.events(en-us,office.12).gif Close Occurs when a document is closed.
Bb257531.events(en-us,office.12).gif ContentControlAfterAdd Occurs after adding a content control to a document.
Bb257531.events(en-us,office.12).gif ContentControlBeforeContentUpdate Occurs before updating the content in a content control, only when the content comes from the Office XML data store.
Bb257531.events(en-us,office.12).gif ContentControlBeforeDelete Occurs before removing a content control from a document.
Bb257531.events(en-us,office.12).gif ContentControlBeforeStoreUpdate Occurs before updating the document's XML data store with the value of a content control.
Bb257531.events(en-us,office.12).gif ContentControlOnEnter Occurs when a user enters a content control.
Bb257531.events(en-us,office.12).gif ContentControlOnExit Occurs when a user leaves a content control.
Bb257531.events(en-us,office.12).gif New Occurs when a new document based on the template is created. A procedure for the New event will run only if it is stored in a template.
Bb257531.events(en-us,office.12).gif Open Occurs when a document is opened.
Bb257531.events(en-us,office.12).gif Sync Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server.
Bb257531.events(en-us,office.12).gif XMLAfterInsert Occurs when a user adds a new XML element to a document. If more than one element is added to the document at the same time (for example, when cutting and pasting XML), the event fires for each element that is inserted.
Bb257531.events(en-us,office.12).gif XMLBeforeDelete Occurs when a user deletes an XML element from a document. If more than one element is deleted from the document at the same time (for example, when cutting and pasting XML), the event fires for each element that is deleted.