Expand Minimize

_Document Properties

The _Document type exposes the following members.

  NameDescription
Public property _CodeName Reserved for internal use.
Public property ActiveTheme Returns the name of the active theme plus the theme formatting options for the specified document.
Public property ActiveThemeDisplayName Returns the display name of the active theme for the specified document.
Public property ActiveWindow Returns a Window object that represents the active window.
Public property ActiveWritingStyle Returns or sets the writing style for a specified language in the specified document.
Public property Application Returns an Application object that represents the Microsoft Word application.
Public property AttachedTemplate Returns a Template object that represents the template attached to the specified document.
Public property AutoFormatOverride Returns or sets a Boolean that represents whether automatic formatting options override formatting restrictions in a document where formatting restrictions are in effect.
Public property AutoHyphenation Determines if automatic hyphenation is turned on for the specified document.
Public property Background Returns a Shape object that represents the background image for the specified document.
Public property Bibliography Returns the bibliography references contained within a document. Read-only.
Public property Bookmarks Returns a Bookmarks collection that represents all the bookmarks in a document.
Public property BuiltInDocumentProperties Returns a DocumentProperties collection that represents all the built-in document properties for the specified document.
Public property Characters Returns a Characters collection that represents the characters in a document.
Public property ChildNodeSuggestions Returns a XMLChildNodeSuggestions collection that represents the list of allowed elements for the Document object (which returns the root elements for all attached schemas).
Public property ClickAndTypeParagraphStyle Returns or sets the default paragraph style applied to text by the Click and Type feature in the specified document.
Public property CoAuthoring Returns a CoAuthoring object that provides an entry point to co-authoring-related object model in the document.
Public property CodeName Returns the code name for the specified document.
Public property CommandBars Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.
Public property Comments Returns a Comments collection that represents all the comments in the specified document.
Public property Compatibility Determines if the specified compatibility option is enabled.
Public property CompatibilityMode Returns a long that specifies the compatibility mode that Word 2010 uses when opening the document.
Public property ConsecutiveHyphensLimit Returns or sets the maximum number of consecutive lines that can end with hyphens.
Public property Container Returns the object that represents the container application for the specified OLE object.
Public property Content Returns a Range object that represents the main document story.
Public property ContentControls Returns all of the content controls in a document. Read-only.
Public property ContentTypeProperties Returns the metadata stored in a document, such as author name, subject, and company. Read-only.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property CurrentRsid Returns a random number that Word assigns to changes in a document. Read-only.
Public property CustomDocumentProperties Returns a DocumentProperties collection that represents all the custom document properties for the specified document.
Public property CustomXMLParts Returns a [CustomXMLParts#SameCHM] collection that represents the custom XML in the XML data store. Read-only.
Public property DefaultTableStyle Returns an Object that represents the table style that is applied to all newly created tables in a document.
Public property DefaultTabStop Returns or sets the interval (in points) between the default tab stops in the specified document.
Public property DefaultTargetFrame Returns or sets a String indicating the browser frame in which to display a Web page reached through a hyperlink.
Public property DisableFeatures Determines if all features introduced after the version specified in the DisableFeaturesIntroducedAfter property are disabled.
Public property DisableFeaturesIntroducedAfter Disables all features introduced after a specified version of Microsoft Word in the document only.
Public property DocID Reserved for internal use.
Public property DocumentInspectors Returns a DocumentInspectors collection that enables you to locate hidden personal information, such as author name, company name, and revision date. Read-only.
Public property 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.
Public property DocumentTheme Returns an OfficeTheme object that represents the Microsoft Office theme applied to a document. Read-only.
Public property DoNotEmbedSystemFonts Determines if Microsoft Word embeds common system fonts.
Public property Email Returns an Email object that contains all the e-mail – related properties of the current document.
Public property EmbedLinguisticData Determines if Microsoft Word embeds speech and handwriting, stores East Asian IME keystrokes, and controls text service data received from devices.
Public property EmbedSmartTags Determines if Microsoft Word saves the smart tag information in a document.
Public property EmbedTrueTypeFonts ReturnsTrue if Microsoft Word embeds TrueType fonts in a document when it's saved.
Public property EncryptionProvider Returns a String specifying the name of the algorithm encryption provider that Microsoft Office Word uses when encrypting documents. Read/write.
Public property Endnotes Returns an Endnotes collection that represents all the endnotes in a range, selection, or document.
Public property EnforceStyle Returns or sets a Boolean that represents whether formatting restrictions are enforced in a protected document.
Public property Envelope Returns an Envelope object that represents envelope functionality and the envelope in the specified document.
Public property FarEastLineBreakLanguage Returns or sets the East Asian language to use when breaking lines of text in the specified document or template.
Public property FarEastLineBreakLevel Returns or sets the line break control level for the specified document.
Public property Fields Returns a read-only Fields collection that represents all the fields in the document, range, or selection.
Public property Final Returns or sets a Boolean that indicates whether a document is final. Read/write.
Public property Footnotes Returns a Footnotes collection that represents all the footnotes in a range, selection, or document.
Public property FormattingShowClear Determines if Microsoft Word is to show clear formatting in the Styles and Formatting task pane.
Public property FormattingShowFilter Returns or sets a WdShowFilter constant that represents the styles and formatting displayed in the Styles and Formatting task pane.
Public property FormattingShowFont Determines if Microsoft Word displays font formatting in the Styles and Formatting task pane.
Public property 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.
Public property FormattingShowNumbering Determines if Microsoft Word displays number formatting in the Styles and Formatting task pane.
Public property FormattingShowParagraph Determines if Microsoft Word displays paragraph formatting in the Styles and Formatting task pane.
Public property FormattingShowUserStyleName Returns or sets a Boolean that represents whether to show user-defined styles. Read/write.
Public property FormFields Returns a FormFields collection that represents all the form fields in the document, range, or selection.
Public property FormsDesign Returns True if the specified document is in form design mode.
Public property Frames Returns a Frames collection that represents all the frames in a document, range, or selection.
Public property Frameset Returns a Frameset object that represents an entire frames page or a single frame on a frames page.
Public property FullName Specifies the name of a document, template, or cascading style sheet, including the drive or Web path.
Public property GrammarChecked Determines if a grammar check has been run on the specified range or document.
Public property GrammaticalErrors Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified document or range.
Public property GridDistanceHorizontal Returns or sets 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.
Public property GridDistanceVertical Returns or sets 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.
Public property GridOriginFromMargin Determines if Microsoft Word starts the character grid from the upper-left corner of the page.
Public property GridOriginHorizontal Returns or sets 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.
Public property GridOriginVertical Returns or sets 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.
Public property GridSpaceBetweenHorizontalLines Returns or sets the interval at which Microsoft Word displays horizontal character gridlines in print layout view.
Public property GridSpaceBetweenVerticalLines Returns or sets the interval at which Microsoft Word displays vertical character gridlines in print layout view.
Public property HasMailer This member is for Macintosh only and should not be used.
Public property HasPassword Returns True if a password is required to open the specified document.
Public property HasRoutingSlip Determines if the specified document has a routing slip attached to it.
Public property HasVBProject Returns a Boolean that represents whether a document has an attached Microsoft Visual Basic for Applications project. Read-only.
Public property HTMLDivisions Returns an HTMLDivisions object that represents an HTML division in a Web document.
Public property HTMLProject Returns an HTMLProject object in the specified document that represents a top-level project branch, as in the Project Explorer of the Microsoft Script Editor.
Public property Hyperlinks Returns a Hyperlinks collection that represents all the hyperlinks in the specified document, range, or selection.
Public property HyphenateCaps Determine if words in all capital letters can be hyphenated.
Public property HyphenationZone Returns or sets the width of the hyphenation zone, in points.
Public property Indexes Returns an Indexes collection that represents all the indexes in the specified document.
Public property InlineShapes Returns an InlineShapes collection that represents all the InlineShape objects in a document, range, or selection.
Public property IsMasterDocument Determines if the specified document is a master document.
Public property IsSubdocument Determines if the specified document is opened in a separate document window as a subdocument of a master document.
Public property JustificationMode Returns or sets the character spacing adjustment for the specified document.
Public property KerningByAlgorithm Determines if Microsoft Word kerns half-width Latin characters and punctuation marks in the specified document.
Public property Kind Returns or sets the format type that Microsoft Word uses when automatically formatting the specified document.
Public property LanguageDetected Returns or sets a value that specifies whether Microsoft Word has detected the language of the specified text.
Public property ListParagraphs Returns a ListParagraphs collection that represents all the numbered paragraphs in the document.
Public property Lists Returns a Lists collection that contains all the formatted lists in the specified document.
Public property ListTemplates Returns a ListTemplates collection that represents all the list formats for the specified document.
Public property LockQuickStyleSet Returns or sets a Boolean that represents whether users can change which set of Quick Styles is being used. Read/write.
Public property LockTheme Returns or sets a Boolean that represents whether a user can change a document theme. Read/write.
Public property MailEnvelope Returns an MsoEnvelope object that represents an e-mail header for a document.
Public property Mailer This member is for Macintosh only and should not be used.
Public property MailMerge Returns a MailMerge object that represents the mail merge functionality for the specified document.
Public property Name Returns the name of the specified object.
Public property NoLineBreakAfter Returns or sets the kinsoku characters after which Microsoft Word will not break a line.
Public property NoLineBreakBefore Returns or sets the kinsoku characters before which Microsoft Word will not break a line.
Public property OMathBreakBin Returns or sets a WdOMathBreakBin enumeration value that represents where Microsoft Office Word places binary operators when equations span two or more lines. Read/write.
Public property OMathBreakSub Returns or sets a WdOMathBreakSub enumeration value that represents how Microsoft Office Word handles a subtraction operator that falls before a line break. Read/write.
Public property OMathFontName Returns the name of the font used in a document to display equations. Read/write.
Public property OMathIntSubSupLim Returns or sets a Boolean that represents the default location of limits for integrals. Read/write.
Public property OMathJc Returns or sets the default justification—left, right, centered, or centered as a group—of a group of equations. Read/write.
Public property OMathLeftMargin Returns or sets the left margin for equations. Read/write.
Public property OMathNarySupSubLim Returns or sets a Boolean that represents the default location of limits for n-ary objects other than integrals. Read/write.
Public property OMathRightMargin Returns or sets the right margin for equations. Read/write.
Public property OMaths Returns the OMath objects within the specified range. Read-only.
Public property OMathSmallFrac Returns or sets a Boolean that represents whether to use small fractions in equations contained within the document. Read/write.
Public property OMathWrap Returns the placement of the second line of an equation that wraps to a new line. Read/write.
Public property OpenEncoding Returns the encoding used to open the specified document.
Public property OptimizeForWord97 Determines if Microsoft Word optimizes the current document for viewing in Word 97.
Public property OriginalDocumentTitle Returns the document title for the original document after running a legal-blackline document compare function. Read-only.
Public property PageSetup Returns a PageSetup object that's associated with the specified document.
Public property Paragraphs Returns a Paragraphs collection that represents all the paragraphs in the specified document.
Public property Parent Returns an object that represents the parent object of the specified object.
Public property Password Sets a password that must be supplied to open the specified document.
Public property PasswordEncryptionAlgorithm Returns a String indicating the algorithm Microsoft Word uses for encrypting documents with passwords.
Public property PasswordEncryptionFileProperties Returns True if Microsoft Word encrypts file properties for password-protected documents.
Public property PasswordEncryptionKeyLength Returns an Integer indicating the key length of the algorithm Microsoft Word uses when encrypting documents with passwords.
Public property PasswordEncryptionProvider Returns the name of the algorithm encryption provider that Microsoft Word uses when encrypting documents with passwords.
Public property Path Returns the disk or Web path to the specified object.
Public property Permission Returns a Permission object that represents the permission settings in the specified document.
Public property PrintFormsData Determines if Microsoft Word prints onto a preprinted form only the data entered in the corresponding online form.
Public property PrintFractionalWidths Determines if the specified document is formatted to use fractional point spacing to display and print characters.
Public property PrintPostScriptOverText Determines 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.
Public property PrintRevisions Determines if revision marks are printed with the document.
Public property ProtectionType Returns the protection type for the specified document.
Public property ReadabilityStatistics Returns a ReadabilityStatistics collection that represents the readability statistics for the specified document.
Public property ReadingLayoutSizeX Returns or sets an Integer that represents the width of pages in a document when it is displayed in reading layout view and is frozen for entering handwritten markup.
Public property ReadingLayoutSizeY Returns or sets an Integer that represents the height of pages in a document when it is displayed in reading layout view and is frozen for entering handwritten markup.
Public property 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.
Public property ReadOnly Determines if changes to the document cannot be saved to the original document.
Public property ReadOnlyRecommended Determines if Word displays a message box whenever a user opens the document, suggesting that it be opened as read-only.
Public property RemoveDateAndTime Returns or sets a Boolean indicating whether a document stores the date and time metadata for tracked changes.
Public property RemovePersonalInformation Determines if Microsoft Word removes all user information from comments, revisions, and the Properties dialog box upon saving a document.
Public property Research Returns the research service for a document. Read-only.
Public property RevisedDocumentTitle Returns the document title for a revised document after running a legal-blackline document compare function. Read-only.
Public property Revisions Returns a Revisions collection that represents the tracked changes in the document or range.
Public property Routed Determines if the specified document has been routed to the next recipient.
Public property RoutingSlip Returns a RoutingSlip object that represents the routing slip information for the specified document.
Public property Saved Determines if the specified document or template hasn't changed since it was last saved.
Public property SaveEncoding Returns or sets the encoding to use when saving a document.
Public property SaveFormat Returns an Integer representing the file format of the specified document or file converter.
Public property SaveFormsData Determines if Microsoft Word saves the data entered in a form as a tab-delimited record for use in a database.
Public property SaveSubsetFonts Determines if Microsoft Word saves a subset of the embedded TrueType fonts with the document.
Public property Scripts Returns a Scripts collection that represents the collection of HTML scripts in the specified object.
Public property Sections Returns a Sections collection that represents the sections in the specified document.
Public property Sentences Returns a Sentences collection that represents all the sentences in the document.
Public property ServerPolicy Returns the policy specified for a document stored on a server running Microsoft Office SharePoint Server 2007. Read-only.
Public property Shapes Returns a Shapes collection that represents all the Shape objects in the specified document.
Public property SharedWorkspace Returns a SharedWorkspace object that represents the Document Workspace in which a specified document is located.
Public property ShowGrammaticalErrors Determines if grammatical errors are marked by a wavy green line in the specified document.
Public property ShowRevisions Determines if tracked changes in the specified document are shown on the screen.
Public property ShowSpellingErrors Determines if Microsoft Word underlines spelling errors in the document.
Public property ShowSummary Determines if an automatic summary is displayed for the specified document.
Public property Signatures Returns a SignatureSet object that represents the digital signatures for a document.
Public property SmartDocument Returns a SmartDocument object that represents the settings for a smart document solution.
Public property SmartTags Returns a SmartTags object that represents a smart tag in a document.
Public property SmartTagsAsXMLProps Determines whether Microsoft Word creates an XML header containing smart tag information when a document containing smart tags is saved as HTML.
Public property SnapToGrid Determines if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the specified document.
Public property SnapToShapes Determines 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.
Public property SpellingChecked Determines if spelling has been checked throughout the specified range or document.
Public property SpellingErrors Returns a ProofreadingErrors collection that represents the words identified as spelling errors in the specified document or range.
Public property StoryRanges Returns a StoryRanges collection that represents all the stories in the specified document.
Public property Styles Returns a Styles collection for the specified document.
Public property StyleSheets Returns a StyleSheets object that represents the Web style sheets attached to a document.
Public property StyleSortMethod Returns or sets the sort method to use when sorting styles in the Styles task pane. Read/write.
Public property Subdocuments Returns a Subdocuments collection that represents all the subdocuments in the specified range or document.
Public property SummaryLength Returns or sets the length of the summary as a percentage of the document length.
Public property SummaryViewMode Returns or sets the way a summary is displayed.
Public property Sync Returns a Sync object that provides access to the methods and properties for documents that are part of a Document Workspace.
Public property Tables Returns a Tables collection that represents all the tables in the specified document.
Public property TablesOfAuthorities Returns a TablesOfAuthorities collection that represents the tables of authorities in the specified document.
Public property TablesOfAuthoritiesCategories Returns a TablesOfAuthoritiesCategories collection that represents the available tables of authorities categories for the specified document.
Public property TablesOfContents Returns a TablesOfContents collection that represents the tables of contents in the specified document.
Public property TablesOfFigures Returns a TablesOfFigures collection that represents the tables of figures in the specified document.
Public property TextEncoding Returns or sets the code page, or character set, that Microsoft Word uses for a document saved as an encoded text file.
Public property TextLineEnding Returns or sets a WdLineEndingType constant indicating how Microsoft Word marks the line and paragraph breaks in documents saved as text files.
Public property TrackFormatting Returns or sets a Boolean that represents whether to track formatting changes when change tracking is turned on. Read/write.
Public property TrackMoves Returns or sets aBoolean that represents whether to mark moved text when Track Changes is turned on. Read/write.
Public property TrackRevisions Determines if changes are tracked in the specified document.
Public property Type Returns the document type (template or document).
Public property UpdateStylesOnOpen Determines if the styles in the specified document are updated to match the styles in the attached template each time the document is opened.
Public property UseMathDefaults Returns or sets a Boolean that represents whether to use the default math settings when creating new equations. Read/write.
Public property UserControl Determines if the document or application was created or opened by the user.
Public property Variables Returns a Variables collection that represents the variables stored in the specified document.
Public property VBASigned Determines if the Visual Basic for Applications (VBA) project for the specified document has been digitally signed.
Public property VBProject Returns the VBProject object for the specified template or document.
Public property Versions Returns a Versions collection that represents all the versions of the specified document.
Public property 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.
Public property Windows Returns a Windows collection that represents all windows for the specified document (for example, Sales.doc:1 and Sales.doc:2).
Public property WordOpenXML Returns the flat XML format for the Word Open XML contents of the document. Read-only.
Public property Words Returns a Words collection that represents all the words in a document.
Public property WritePassword Sets a password for saving changes to the specified document.
Public property WriteReserved Determines if the specified document is protected with a write password.
Public property XMLHideNamespaces Returns a Boolean that represents whether to hide the XML namespaces in the list of elements in the XML Structure task pane.
Public property XMLNodes Returns a XMLNodes collection that represents the collection of all XML elements within a document or in a selection or range— including those elements that are only partially within the selection or range.
Public property XMLSaveDataOnly Returns or sets a Boolean that represents whether a document is saved with the XML markup or as text only.
Public property XMLSaveThroughXSLT Returns or sets a String that specifies the path and file name for the Extensible Stylesheet Language Transformation (XSLT) to apply when a user saves a document.
Public property XMLSchemaReferences Returns an XMLSchemaReferences collection that represents the schemas attached to a document.
Public property XMLSchemaViolations Returns an XMLNodes collection that represents all nodes in the document that have validation errors.
Public property 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.
Public property XMLUseXSLTWhenSaving Returns a Boolean that represents whether to save a document through an Extensible Stylesheet Language Transformation (XSLT).
Top

Community Additions

ADD
Show:
© 2014 Microsoft