Document Document Document Interface

Definition

Represents a document.

public interface class Document : Microsoft::Office::Interop::Word::_Document, Microsoft::Office::Interop::Word::DocumentEvents2_Event
[System.Runtime.InteropServices.Guid("0002096B-0000-0000-C000-000000000046")]
public interface Document : Microsoft.Office.Interop.Word._Document, Microsoft.Office.Interop.Word.DocumentEvents2_Event
Public Interface Document
Implements _Document, DocumentEvents2_Event
Derived
Attributes
Implements

Remarks

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

UseDocuments(index) where index is the document name or index number to return a single Document object.

The index number represents the position of the document in the Documents collection.

Use the ActiveDocument property to refer to the document with the focus.

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Document. For information about the event members of the COM object, see DocumentEvents2_Event

Properties

ActiveTheme ActiveTheme ActiveTheme

Returns the name of the active theme plus the theme formatting options for the specified document.

(Inherited from _Document)

ActiveThemeDisplayName ActiveThemeDisplayName ActiveThemeDisplayName

Returns the display name of the active theme for the specified document.

(Inherited from _Document)

ActiveWindow ActiveWindow ActiveWindow

Returns a Window object that represents the active window.

(Inherited from _Document)

ActiveWritingStyle[Object] ActiveWritingStyle[Object] ActiveWritingStyle[Object]

Returns or sets the writing style for a specified language in the specified document.

(Inherited from _Document)

Application Application Application

Returns an Application object that represents the Microsoft Word application.

(Inherited from _Document)

AttachedTemplate AttachedTemplate AttachedTemplate

Returns a Template object that represents the template attached to the specified document.

(Inherited from _Document)

AutoFormatOverride AutoFormatOverride AutoFormatOverride

Returns or sets a Boolean that represents whether automatic formatting options override formatting restrictions in a document where formatting restrictions are in effect.

(Inherited from _Document)

AutoHyphenation AutoHyphenation AutoHyphenation

Determines if automatic hyphenation is turned on for the specified document.

(Inherited from _Document)

Background Background Background

Returns a Shape object that represents the background image for the specified document.

(Inherited from _Document)

Bibliography Bibliography Bibliography

Returns the bibliography references contained within a document. Read-only.

(Inherited from _Document)

Bookmarks Bookmarks Bookmarks

Returns a Bookmarks collection that represents all the bookmarks in a document.

(Inherited from _Document)

Broadcast Broadcast Broadcast

Returns a Broadcast object that represents a broadcast session, in which presenters can present Word documents to remote participants over the web without the participants needing to have rich clients installed.

(Inherited from _Document)

BuiltInDocumentProperties BuiltInDocumentProperties BuiltInDocumentProperties

Returns a DocumentProperties collection that represents all the built-in document properties for the specified document.

(Inherited from _Document)

Characters Characters Characters

Returns a Characters collection that represents the characters in a document.

(Inherited from _Document)

ChartDataPointTrack ChartDataPointTrack ChartDataPointTrack

Returns or sets a Boolean (bool in C#) that specifies whether charts in the active document use cell-reference data-point tracking. Read-write.

(Inherited from _Document)

ChildNodeSuggestions ChildNodeSuggestions ChildNodeSuggestions

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

ClickAndTypeParagraphStyle ClickAndTypeParagraphStyle ClickAndTypeParagraphStyle

Returns or sets the default paragraph style applied to text by the Click and Type feature in the specified document.

(Inherited from _Document)

CoAuthoring CoAuthoring CoAuthoring

Returns a CoAuthoring object that provides an entry point to co-authoring-related object model in the document.

(Inherited from _Document)

CodeName CodeName CodeName

Returns the code name for the specified document.

(Inherited from _Document)

CommandBars CommandBars CommandBars

Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.

(Inherited from _Document)

Comments Comments Comments

Returns a Comments collection that represents all the comments in the specified document.

(Inherited from _Document)

CompatibilityMode CompatibilityMode CompatibilityMode

Returns a long that specifies the compatibility mode that Word 2010 uses when opening the document.

(Inherited from _Document)

Compatibility[WdCompatibility] Compatibility[WdCompatibility] Compatibility[WdCompatibility]

Determines if the specified compatibility option is enabled.

(Inherited from _Document)

ConsecutiveHyphensLimit ConsecutiveHyphensLimit ConsecutiveHyphensLimit

Returns or sets the maximum number of consecutive lines that can end with hyphens.

(Inherited from _Document)

Container Container Container

Returns the object that represents the container application for the specified OLE object.

(Inherited from _Document)

Content Content Content

Returns a Range object that represents the main document story.

(Inherited from _Document)

ContentControls ContentControls ContentControls

Returns all of the content controls in a document. Read-only.

(Inherited from _Document)

ContentTypeProperties ContentTypeProperties ContentTypeProperties

Returns the metadata stored in a document, such as author name, subject, and company. Read-only.

(Inherited from _Document)

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

(Inherited from _Document)

CurrentRsid CurrentRsid CurrentRsid

Returns a random number that Word assigns to changes in a document. Read-only.

(Inherited from _Document)

CustomDocumentProperties CustomDocumentProperties CustomDocumentProperties

Returns a DocumentProperties collection that represents all the custom document properties for the specified document.

(Inherited from _Document)

CustomXMLParts CustomXMLParts CustomXMLParts

Returns a CustomXMLParts#SameCHM collection that represents the custom XML in the XML data store. Read-only.

(Inherited from _Document)

DefaultTableStyle DefaultTableStyle DefaultTableStyle

Returns an Object that represents the table style that is applied to all newly created tables in a document.

(Inherited from _Document)

DefaultTabStop DefaultTabStop DefaultTabStop

Returns or sets the interval (in points) between the default tab stops in the specified document.

(Inherited from _Document)

DefaultTargetFrame DefaultTargetFrame DefaultTargetFrame

Returns or sets a String indicating the browser frame in which to display a Web page reached through a hyperlink.

(Inherited from _Document)

DisableFeatures DisableFeatures DisableFeatures

Determines if all features introduced after the version specified in the DisableFeaturesIntroducedAfter property are disabled.

(Inherited from _Document)

DisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter

Disables all features introduced after a specified version of Microsoft Word in the document only.

(Inherited from _Document)

DocID DocID DocID

Reserved for internal use.

(Inherited from _Document)

DocumentInspectors DocumentInspectors DocumentInspectors

Returns a DocumentInspectors collection that enables you to locate hidden personal information, such as author name, company name, and revision date. Read-only.

(Inherited from _Document)

DocumentLibraryVersions DocumentLibraryVersions 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.

(Inherited from _Document)

DocumentTheme DocumentTheme DocumentTheme

Returns an OfficeTheme object that represents the Microsoft Office theme applied to a document. Read-only.

(Inherited from _Document)

DoNotEmbedSystemFonts DoNotEmbedSystemFonts DoNotEmbedSystemFonts

Determines if Microsoft Word embeds common system fonts.

(Inherited from _Document)

Email Email Email

Returns an Email object that contains all the e-mail – related properties of the current document.

(Inherited from _Document)

EmbedLinguisticData EmbedLinguisticData EmbedLinguisticData

Determines if Microsoft Word embeds speech and handwriting, stores East Asian IME keystrokes, and controls text service data received from devices.

(Inherited from _Document)

EmbedSmartTags EmbedSmartTags EmbedSmartTags

Determines if Microsoft Word saves the smart tag information in a document.

(Inherited from _Document)

EmbedTrueTypeFonts EmbedTrueTypeFonts EmbedTrueTypeFonts

ReturnsTrue if Microsoft Word embeds TrueType fonts in a document when it's saved.

(Inherited from _Document)

EncryptionProvider EncryptionProvider EncryptionProvider

Returns a String specifying the name of the algorithm encryption provider that Microsoft Office Word uses when encrypting documents. Read/write.

(Inherited from _Document)

Endnotes Endnotes Endnotes

Returns an Endnotes collection that represents all the endnotes in a range, selection, or document.

(Inherited from _Document)

EnforceStyle EnforceStyle EnforceStyle

Returns or sets a Boolean that represents whether formatting restrictions are enforced in a protected document.

(Inherited from _Document)

Envelope Envelope Envelope

Returns an Envelope object that represents envelope functionality and the envelope in the specified document.

(Inherited from _Document)

FarEastLineBreakLanguage FarEastLineBreakLanguage FarEastLineBreakLanguage

Returns or sets the East Asian language to use when breaking lines of text in the specified document or template.

(Inherited from _Document)

FarEastLineBreakLevel FarEastLineBreakLevel FarEastLineBreakLevel

Returns or sets the line break control level for the specified document.

(Inherited from _Document)

Fields Fields Fields

Returns a read-only Fields collection that represents all the fields in the document, range, or selection.

(Inherited from _Document)

Final Final Final

Returns or sets a Boolean that indicates whether a document is final. Read/write.

(Inherited from _Document)

Footnotes Footnotes Footnotes

Returns a Footnotes collection that represents all the footnotes in a range, selection, or document.

(Inherited from _Document)

FormattingShowClear FormattingShowClear FormattingShowClear

Determines if Microsoft Word is to show clear formatting in the Styles and Formatting task pane.

(Inherited from _Document)

FormattingShowFilter FormattingShowFilter FormattingShowFilter

Returns or sets a WdShowFilter constant that represents the styles and formatting displayed in the Styles and Formatting task pane.

(Inherited from _Document)

FormattingShowFont FormattingShowFont FormattingShowFont

Determines if Microsoft Word displays font formatting in the Styles and Formatting task pane.

(Inherited from _Document)

FormattingShowNextLevel FormattingShowNextLevel 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.

(Inherited from _Document)

FormattingShowNumbering FormattingShowNumbering FormattingShowNumbering

Determines if Microsoft Word displays number formatting in the Styles and Formatting task pane.

(Inherited from _Document)

FormattingShowParagraph FormattingShowParagraph FormattingShowParagraph

Determines if Microsoft Word displays paragraph formatting in the Styles and Formatting task pane.

(Inherited from _Document)

FormattingShowUserStyleName FormattingShowUserStyleName FormattingShowUserStyleName

Returns or sets a Boolean that represents whether to show user-defined styles. Read/write.

(Inherited from _Document)

FormFields FormFields FormFields

Returns a FormFields collection that represents all the form fields in the document, range, or selection.

(Inherited from _Document)

FormsDesign FormsDesign FormsDesign

Returns True if the specified document is in form design mode.

(Inherited from _Document)

Frames Frames Frames

Returns a Frames collection that represents all the frames in a document, range, or selection.

(Inherited from _Document)

Frameset Frameset Frameset

Returns a Frameset object that represents an entire frames page or a single frame on a frames page.

(Inherited from _Document)

FullName FullName FullName

Specifies the name of a document, template, or cascading style sheet, including the drive or Web path.

(Inherited from _Document)

GrammarChecked GrammarChecked GrammarChecked

Determines if a grammar check has been run on the specified range or document.

(Inherited from _Document)

GrammaticalErrors GrammaticalErrors GrammaticalErrors

Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified document or range.

(Inherited from _Document)

GridDistanceHorizontal GridDistanceHorizontal 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.

(Inherited from _Document)

GridDistanceVertical GridDistanceVertical 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.

(Inherited from _Document)

GridOriginFromMargin GridOriginFromMargin GridOriginFromMargin

Determines if Microsoft Word starts the character grid from the upper-left corner of the page.

(Inherited from _Document)

GridOriginHorizontal GridOriginHorizontal 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.

(Inherited from _Document)

GridOriginVertical GridOriginVertical 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.

(Inherited from _Document)

GridSpaceBetweenHorizontalLines GridSpaceBetweenHorizontalLines GridSpaceBetweenHorizontalLines

Returns or sets the interval at which Microsoft Word displays horizontal character gridlines in print layout view.

(Inherited from _Document)

GridSpaceBetweenVerticalLines GridSpaceBetweenVerticalLines GridSpaceBetweenVerticalLines

Returns or sets the interval at which Microsoft Word displays vertical character gridlines in print layout view.

(Inherited from _Document)

HasMailer HasMailer HasMailer

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

HasPassword HasPassword HasPassword

Returns True if a password is required to open the specified document.

(Inherited from _Document)

HasRoutingSlip HasRoutingSlip HasRoutingSlip

Determines if the specified document has a routing slip attached to it.

(Inherited from _Document)

HasVBProject HasVBProject HasVBProject

Returns a Boolean that represents whether a document has an attached Microsoft Visual Basic for Applications project. Read-only.

(Inherited from _Document)

HTMLDivisions HTMLDivisions HTMLDivisions

Returns an HTMLDivisions object that represents an HTML division in a Web document.

(Inherited from _Document)

HTMLProject HTMLProject 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.

(Inherited from _Document)

Returns a Hyperlinks collection that represents all the hyperlinks in the specified document, range, or selection.

(Inherited from _Document)

HyphenateCaps HyphenateCaps HyphenateCaps

Determine if words in all capital letters can be hyphenated.

(Inherited from _Document)

HyphenationZone HyphenationZone HyphenationZone

Returns or sets the width of the hyphenation zone, in points.

(Inherited from _Document)

Indexes Indexes Indexes

Returns an Indexes collection that represents all the indexes in the specified document.

(Inherited from _Document)

InlineShapes InlineShapes InlineShapes

Returns an InlineShapes collection that represents all the InlineShape objects in a document, range, or selection.

(Inherited from _Document)

IsInAutosave IsInAutosave IsInAutosave

True if the most recent firing of the Application.DocumentBeforeSave Event (Word)event was the result of an automatic save, and not a manual save by the user. Read-only.

(Inherited from _Document)

IsMasterDocument IsMasterDocument IsMasterDocument

Determines if the specified document is a master document.

(Inherited from _Document)

IsSubdocument IsSubdocument IsSubdocument

Determines if the specified document is opened in a separate document window as a subdocument of a master document.

(Inherited from _Document)

JustificationMode JustificationMode JustificationMode

Returns or sets the character spacing adjustment for the specified document.

(Inherited from _Document)

KerningByAlgorithm KerningByAlgorithm KerningByAlgorithm

Determines if Microsoft Word kerns half-width Latin characters and punctuation marks in the specified document.

(Inherited from _Document)

Kind Kind Kind

Returns or sets the format type that Microsoft Word uses when automatically formatting the specified document.

(Inherited from _Document)

LanguageDetected LanguageDetected LanguageDetected

Returns or sets a value that specifies whether Microsoft Word has detected the language of the specified text.

(Inherited from _Document)

ListParagraphs ListParagraphs ListParagraphs

Returns a ListParagraphs collection that represents all the numbered paragraphs in the document.

(Inherited from _Document)

Lists Lists Lists

Returns a Lists collection that contains all the formatted lists in the specified document.

(Inherited from _Document)

ListTemplates ListTemplates ListTemplates

Returns a ListTemplates collection that represents all the list formats for the specified document.

(Inherited from _Document)

LockQuickStyleSet LockQuickStyleSet LockQuickStyleSet

Returns or sets a Boolean that represents whether users can change which set of Quick Styles is being used. Read/write.

(Inherited from _Document)

LockTheme LockTheme LockTheme

Returns or sets a Boolean that represents whether a user can change a document theme. Read/write.

(Inherited from _Document)

MailEnvelope MailEnvelope MailEnvelope

Returns an MsoEnvelope object that represents an e-mail header for a document.

(Inherited from _Document)

Mailer Mailer Mailer

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

MailMerge MailMerge MailMerge

Returns a MailMerge object that represents the mail merge functionality for the specified document.

(Inherited from _Document)

Name Name Name

Returns the name of the specified object.

(Inherited from _Document)

NoLineBreakAfter NoLineBreakAfter NoLineBreakAfter

Returns or sets the kinsoku characters after which Microsoft Word will not break a line.

(Inherited from _Document)

NoLineBreakBefore NoLineBreakBefore NoLineBreakBefore

Returns or sets the kinsoku characters before which Microsoft Word will not break a line.

(Inherited from _Document)

OMathBreakBin OMathBreakBin 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.

(Inherited from _Document)

OMathBreakSub OMathBreakSub 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.

(Inherited from _Document)

OMathFontName OMathFontName OMathFontName

Returns the name of the font used in a document to display equations. Read/write.

(Inherited from _Document)

OMathIntSubSupLim OMathIntSubSupLim OMathIntSubSupLim

Returns or sets a Boolean that represents the default location of limits for integrals. Read/write.

(Inherited from _Document)

OMathJc OMathJc OMathJc

Returns or sets the default justification—left, right, centered, or centered as a group—of a group of equations. Read/write.

(Inherited from _Document)

OMathLeftMargin OMathLeftMargin OMathLeftMargin

Returns or sets the left margin for equations. Read/write.

(Inherited from _Document)

OMathNarySupSubLim OMathNarySupSubLim OMathNarySupSubLim

Returns or sets a Boolean that represents the default location of limits for n-ary objects other than integrals. Read/write.

(Inherited from _Document)

OMathRightMargin OMathRightMargin OMathRightMargin

Returns or sets the right margin for equations. Read/write.

(Inherited from _Document)

OMaths OMaths OMaths

Returns the OMath objects within the specified range. Read-only.

(Inherited from _Document)

OMathSmallFrac OMathSmallFrac OMathSmallFrac

Returns or sets a Boolean that represents whether to use small fractions in equations contained within the document. Read/write.

(Inherited from _Document)

OMathWrap OMathWrap OMathWrap

Returns the placement of the second line of an equation that wraps to a new line. Read/write.

(Inherited from _Document)

OpenEncoding OpenEncoding OpenEncoding

Returns the encoding used to open the specified document.

(Inherited from _Document)

OptimizeForWord97 OptimizeForWord97 OptimizeForWord97

Determines if Microsoft Word optimizes the current document for viewing in Word 97.

(Inherited from _Document)

OriginalDocumentTitle OriginalDocumentTitle OriginalDocumentTitle

Returns the document title for the original document after running a legal-blackline document compare function. Read-only.

(Inherited from _Document)

PageSetup PageSetup PageSetup

Returns a PageSetup object that's associated with the specified document.

(Inherited from _Document)

Paragraphs Paragraphs Paragraphs

Returns a Paragraphs collection that represents all the paragraphs in the specified document.

(Inherited from _Document)

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

(Inherited from _Document)

Password Password Password

Sets a password that must be supplied to open the specified document.

(Inherited from _Document)

PasswordEncryptionAlgorithm PasswordEncryptionAlgorithm PasswordEncryptionAlgorithm

Returns a String indicating the algorithm Microsoft Word uses for encrypting documents with passwords.

(Inherited from _Document)

PasswordEncryptionFileProperties PasswordEncryptionFileProperties PasswordEncryptionFileProperties

Returns True if Microsoft Word encrypts file properties for password-protected documents.

(Inherited from _Document)

PasswordEncryptionKeyLength PasswordEncryptionKeyLength PasswordEncryptionKeyLength

Returns an Integer indicating the key length of the algorithm Microsoft Word uses when encrypting documents with passwords.

(Inherited from _Document)

PasswordEncryptionProvider PasswordEncryptionProvider PasswordEncryptionProvider

Returns the name of the algorithm encryption provider that Microsoft Word uses when encrypting documents with passwords.

(Inherited from _Document)

Path Path Path

Returns the disk or Web path to the specified object.

(Inherited from _Document)

Permission Permission Permission

Returns a Permission object that represents the permission settings in the specified document.

(Inherited from _Document)

PrintFormsData PrintFormsData PrintFormsData

Determines if Microsoft Word prints onto a preprinted form only the data entered in the corresponding online form.

(Inherited from _Document)

PrintFractionalWidths PrintFractionalWidths PrintFractionalWidths

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

PrintPostScriptOverText PrintPostScriptOverText 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.

(Inherited from _Document)

PrintRevisions PrintRevisions PrintRevisions

Determines if revision marks are printed with the document.

(Inherited from _Document)

ProtectionType ProtectionType ProtectionType

Returns the protection type for the specified document.

(Inherited from _Document)

ReadabilityStatistics ReadabilityStatistics ReadabilityStatistics

Returns a ReadabilityStatistics collection that represents the readability statistics for the specified document.

(Inherited from _Document)

ReadingLayoutSizeX ReadingLayoutSizeX 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.

(Inherited from _Document)

ReadingLayoutSizeY ReadingLayoutSizeY 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.

(Inherited from _Document)

ReadingModeLayoutFrozen ReadingModeLayoutFrozen 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.

(Inherited from _Document)

ReadOnly ReadOnly ReadOnly

Determines if changes to the document cannot be saved to the original document.

(Inherited from _Document)

ReadOnlyRecommended ReadOnlyRecommended ReadOnlyRecommended

Determines if Word displays a message box whenever a user opens the document, suggesting that it be opened as read-only.

(Inherited from _Document)

RemoveDateAndTime RemoveDateAndTime RemoveDateAndTime

Returns or sets a Boolean indicating whether a document stores the date and time metadata for tracked changes.

(Inherited from _Document)

RemovePersonalInformation RemovePersonalInformation RemovePersonalInformation

Determines if Microsoft Word removes all user information from comments, revisions, and the Properties dialog box upon saving a document.

(Inherited from _Document)

Research Research Research

Returns the research service for a document. Read-only.

(Inherited from _Document)

RevisedDocumentTitle RevisedDocumentTitle RevisedDocumentTitle

Returns the document title for a revised document after running a legal-blackline document compare function. Read-only.

(Inherited from _Document)

Revisions Revisions Revisions

Returns a Revisions collection that represents the tracked changes in the document or range.

(Inherited from _Document)

Routed Routed Routed

Determines if the specified document has been routed to the next recipient.

(Inherited from _Document)

RoutingSlip RoutingSlip RoutingSlip

Returns a RoutingSlip object that represents the routing slip information for the specified document.

(Inherited from _Document)

Saved Saved Saved

Determines if the specified document or template hasn't changed since it was last saved.

(Inherited from _Document)

SaveEncoding SaveEncoding SaveEncoding

Returns or sets the encoding to use when saving a document.

(Inherited from _Document)

SaveFormat SaveFormat SaveFormat

Returns an Integer representing the file format of the specified document or file converter.

(Inherited from _Document)

SaveFormsData SaveFormsData SaveFormsData

Determines if Microsoft Word saves the data entered in a form as a tab-delimited record for use in a database.

(Inherited from _Document)

SaveSubsetFonts SaveSubsetFonts SaveSubsetFonts

Determines if Microsoft Word saves a subset of the embedded TrueType fonts with the document.

(Inherited from _Document)

Scripts Scripts Scripts

Returns a Scripts collection that represents the collection of HTML scripts in the specified object.

(Inherited from _Document)

Sections Sections Sections

Returns a Sections collection that represents the sections in the specified document.

(Inherited from _Document)

Sentences Sentences Sentences

Returns a Sentences collection that represents all the sentences in the document.

(Inherited from _Document)

ServerPolicy ServerPolicy ServerPolicy

Returns the policy specified for a document stored on a server running Microsoft Office SharePoint Server 2007. Read-only.

(Inherited from _Document)

Shapes Shapes Shapes

Returns a Shapes collection that represents all the Shape objects in the specified document.

(Inherited from _Document)

SharedWorkspace SharedWorkspace SharedWorkspace

Returns a SharedWorkspace object that represents the Document Workspace in which a specified document is located.

(Inherited from _Document)

ShowGrammaticalErrors ShowGrammaticalErrors ShowGrammaticalErrors

Determines if grammatical errors are marked by a wavy green line in the specified document.

(Inherited from _Document)

ShowRevisions ShowRevisions ShowRevisions

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

ShowSpellingErrors ShowSpellingErrors ShowSpellingErrors

Determines if Microsoft Word underlines spelling errors in the document.

(Inherited from _Document)

ShowSummary ShowSummary ShowSummary

Determines if an automatic summary is displayed for the specified document.

(Inherited from _Document)

Signatures Signatures Signatures

Returns a SignatureSet object that represents the digital signatures for a document.

(Inherited from _Document)

SmartDocument SmartDocument SmartDocument

Returns a SmartDocument object that represents the settings for a smart document solution.

(Inherited from _Document)

SmartTags SmartTags SmartTags

Returns a SmartTags object that represents a smart tag in a document.

(Inherited from _Document)

SmartTagsAsXMLProps SmartTagsAsXMLProps SmartTagsAsXMLProps

Determines whether Microsoft Word creates an XML header containing smart tag information when a document containing smart tags is saved as HTML.

(Inherited from _Document)

SnapToGrid SnapToGrid 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.

(Inherited from _Document)

SnapToShapes SnapToShapes 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.

(Inherited from _Document)

SpellingChecked SpellingChecked SpellingChecked

Determines if spelling has been checked throughout the specified range or document.

(Inherited from _Document)

SpellingErrors SpellingErrors SpellingErrors

Returns a ProofreadingErrors collection that represents the words identified as spelling errors in the specified document or range.

(Inherited from _Document)

StoryRanges StoryRanges StoryRanges

Returns a StoryRanges collection that represents all the stories in the specified document.

(Inherited from _Document)

Styles Styles Styles

Returns a Styles collection for the specified document.

(Inherited from _Document)

StyleSheets StyleSheets StyleSheets

Returns a StyleSheets object that represents the Web style sheets attached to a document.

(Inherited from _Document)

StyleSortMethod StyleSortMethod StyleSortMethod

Returns or sets the sort method to use when sorting styles in the Styles task pane. Read/write.

(Inherited from _Document)

Subdocuments Subdocuments Subdocuments

Returns a Subdocuments collection that represents all the subdocuments in the specified range or document.

(Inherited from _Document)

SummaryLength SummaryLength SummaryLength

Returns or sets the length of the summary as a percentage of the document length.

(Inherited from _Document)

SummaryViewMode SummaryViewMode SummaryViewMode

Returns or sets the way a summary is displayed.

(Inherited from _Document)

Tables Tables Tables

Returns a Tables collection that represents all the tables in the specified document.

(Inherited from _Document)

TablesOfAuthorities TablesOfAuthorities TablesOfAuthorities

Returns a TablesOfAuthorities collection that represents the tables of authorities in the specified document.

(Inherited from _Document)

TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories

Returns a TablesOfAuthoritiesCategories collection that represents the available tables of authorities categories for the specified document.

(Inherited from _Document)

TablesOfContents TablesOfContents TablesOfContents

Returns a TablesOfContents collection that represents the tables of contents in the specified document.

(Inherited from _Document)

TablesOfFigures TablesOfFigures TablesOfFigures

Returns a TablesOfFigures collection that represents the tables of figures in the specified document.

(Inherited from _Document)

TextEncoding TextEncoding TextEncoding

Returns or sets the code page, or character set, that Microsoft Word uses for a document saved as an encoded text file.

(Inherited from _Document)

TextLineEnding TextLineEnding TextLineEnding

Returns or sets a WdLineEndingType constant indicating how Microsoft Word marks the line and paragraph breaks in documents saved as text files.

(Inherited from _Document)

TrackFormatting TrackFormatting TrackFormatting

Returns or sets a Boolean that represents whether to track formatting changes when change tracking is turned on. Read/write.

(Inherited from _Document)

TrackMoves TrackMoves TrackMoves

Returns or sets aBoolean that represents whether to mark moved text when Track Changes is turned on. Read/write.

(Inherited from _Document)

TrackRevisions TrackRevisions TrackRevisions

Determines if changes are tracked in the specified document.

(Inherited from _Document)

Type Type Type

Returns the document type (template or document).

(Inherited from _Document)

UpdateStylesOnOpen UpdateStylesOnOpen 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.

(Inherited from _Document)

UseMathDefaults UseMathDefaults UseMathDefaults

Returns or sets a Boolean that represents whether to use the default math settings when creating new equations. Read/write.

(Inherited from _Document)

UserControl UserControl UserControl

Determines if the document or application was created or opened by the user.

(Inherited from _Document)

Variables Variables Variables

Returns a Variables collection that represents the variables stored in the specified document.

(Inherited from _Document)

VBASigned VBASigned VBASigned

Determines if the Visual Basic for Applications (VBA) project for the specified document has been digitally signed.

(Inherited from _Document)

VBProject VBProject VBProject

Returns the VBProject object for the specified template or document.

(Inherited from _Document)

Versions Versions Versions

Returns a Versions collection that represents all the versions of the specified document.

(Inherited from _Document)

WebOptions WebOptions 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.

(Inherited from _Document)

Windows Windows Windows

Returns a Windows collection that represents all windows for the specified document (for example, Sales.doc:1 and Sales.doc:2).

(Inherited from _Document)

WordOpenXML WordOpenXML WordOpenXML

Returns the flat XML format for the Word Open XML contents of the document. Read-only.

(Inherited from _Document)

Words Words Words

Returns a Words collection that represents all the words in a document.

(Inherited from _Document)

WritePassword WritePassword WritePassword

Sets a password for saving changes to the specified document.

(Inherited from _Document)

WriteReserved WriteReserved WriteReserved

Determines if the specified document is protected with a write password.

(Inherited from _Document)

XMLHideNamespaces XMLHideNamespaces XMLHideNamespaces

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

XMLNodes XMLNodes XMLNodes

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

XMLSaveDataOnly XMLSaveDataOnly XMLSaveDataOnly

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

XMLSaveThroughXSLT XMLSaveThroughXSLT 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.

(Inherited from _Document)

XMLSchemaReferences XMLSchemaReferences XMLSchemaReferences

Returns an XMLSchemaReferences collection that represents the schemas attached to a document.

(Inherited from _Document)

XMLSchemaViolations XMLSchemaViolations XMLSchemaViolations

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

XMLShowAdvancedErrors XMLShowAdvancedErrors 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.

(Inherited from _Document)

XMLUseXSLTWhenSaving XMLUseXSLTWhenSaving XMLUseXSLTWhenSaving

Returns a Boolean that represents whether to save a document through an Extensible Stylesheet Language Transformation (XSLT).

(Inherited from _Document)

_CodeName _CodeName _CodeName

Reserved for internal use.

(Inherited from _Document)

Methods

AcceptAllRevisions() AcceptAllRevisions() AcceptAllRevisions()

Accepts all tracked changes in the specified document.

(Inherited from _Document)

AcceptAllRevisionsShown() AcceptAllRevisionsShown() AcceptAllRevisionsShown()

Accepts all revisions in the specified document that are displayed on the screen.

(Inherited from _Document)

Activate() Activate() Activate()

Activates the specified object.

(Inherited from _Document)

AddDocumentWorkspaceHeader(Boolean, String, String, String, String) AddDocumentWorkspaceHeader(Boolean, String, String, String, String) AddDocumentWorkspaceHeader(Boolean, String, String, String, String)

Reserved for internal use.

(Inherited from _Document)

AddMeetingWorkspaceHeader(Boolean, String, String, String, String) AddMeetingWorkspaceHeader(Boolean, String, String, String, String) AddMeetingWorkspaceHeader(Boolean, String, String, String, String)

Reserved for internal use.

(Inherited from _Document)

AddToFavorites() AddToFavorites() AddToFavorites()

Creates a shortcut to the document or hyperlink and adds it to the Favorites folder.

(Inherited from _Document)

ApplyDocumentTheme(String) ApplyDocumentTheme(String) ApplyDocumentTheme(String)

Applies a document theme to a document.

(Inherited from _Document)

ApplyQuickStyleSet(String) ApplyQuickStyleSet(String) ApplyQuickStyleSet(String)

Changes the set of quick styles listed.

(Inherited from _Document)

ApplyQuickStyleSet2(Object) ApplyQuickStyleSet2(Object) ApplyQuickStyleSet2(Object)

Applies the specified Quick Style set to the document.

(Inherited from _Document)

ApplyTheme(String) ApplyTheme(String) ApplyTheme(String)

Applies a theme to an open document.

(Inherited from _Document)

AutoFormat() AutoFormat() AutoFormat()

Automatically formats a document.

(Inherited from _Document)

AutoSummarize(Object, Object, Object) AutoSummarize(Object, Object, Object) AutoSummarize(Object, Object, Object)

Creates an automatic summary of the specified document, and returns a Range object.

(Inherited from _Document)

CanCheckin() CanCheckin() CanCheckin()

Determines if Microsoft Word can check in a specified document to a server.

(Inherited from _Document)

CheckConsistency() CheckConsistency() CheckConsistency()

Searches all text in a Japanese language document and displays instances where character usage is inconsistent for the same words.

(Inherited from _Document)

CheckGrammar() CheckGrammar() CheckGrammar()

Begins a spelling and grammar check for the specified document or range.

(Inherited from _Document)

CheckIn(Boolean, Object, Boolean) CheckIn(Boolean, Object, Boolean) CheckIn(Boolean, Object, Boolean)

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.

(Inherited from _Document)

CheckInWithVersion(Boolean, Object, Boolean, Object) CheckInWithVersion(Boolean, Object, Boolean, Object) CheckInWithVersion(Boolean, Object, Boolean, Object)

Puts a document on a server from a local computer, and sets the local document to read-only so that it cannot be edited locally.

(Inherited from _Document)

CheckNewSmartTags() CheckNewSmartTags() CheckNewSmartTags()

Accesses the Microsoft Office Web site for available smart tag recognizer and action files.

(Inherited from _Document)

CheckSpelling(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) CheckSpelling(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) CheckSpelling(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Begins a spelling check for the specified document or range.

(Inherited from _Document)

Close(Object, Object, Object) Close(Object, Object, Object) Close(Object, Object, Object)

Closes the specified document or documents.

(Inherited from _Document)

ClosePrintPreview() ClosePrintPreview() ClosePrintPreview()

Switches the specified document from print preview to the previous view. If the specified document isn't in print preview, an error occurs.

(Inherited from _Document)

Compare(String, Object, Object, Object, Object, Object, Object, Object) Compare(String, Object, Object, Object, Object, Object, Object, Object) Compare(String, Object, Object, Object, Object, Object, Object, Object)

Displays revision marks that indicate where the specified document differs from another document.

(Inherited from _Document)

Compare2000(String) Compare2000(String) Compare2000(String)

Reserved for internal use.

(Inherited from _Document)

Compare2002(String, Object, Object, Object, Object, Object) Compare2002(String, Object, Object, Object, Object, Object) Compare2002(String, Object, Object, Object, Object, Object)

Reserved for internal use.

(Inherited from _Document)

ComputeStatistics(WdStatistic, Object) ComputeStatistics(WdStatistic, Object) ComputeStatistics(WdStatistic, Object)

Returns a statistic based on the contents of the specified document.

(Inherited from _Document)

Convert() Convert() Convert()

Converts file to the newest file format and enables all new features.

(Inherited from _Document)

ConvertAutoHyphens() ConvertAutoHyphens() ConvertAutoHyphens()

Converts hyphens created by automatic hyphenation to manual hyphens.

(Inherited from _Document)

ConvertNumbersToText(Object) ConvertNumbersToText(Object) ConvertNumbersToText(Object)

Changes the list numbers and LISTNUM fields in the specified object to text.

(Inherited from _Document)

ConvertVietDoc(Int32) ConvertVietDoc(Int32) ConvertVietDoc(Int32)

Reconverts a Vietnamese document to Unicode using a code page other than the default.

(Inherited from _Document)

CopyStylesFromTemplate(String) CopyStylesFromTemplate(String) CopyStylesFromTemplate(String)

Copies styles from the specified template to a document.

(Inherited from _Document)

CountNumberedItems(Object, Object) CountNumberedItems(Object, Object) CountNumberedItems(Object, Object)

Returns the number of bulleted or numbered items and LISTNUM fields in the specified object.

(Inherited from _Document)

CreateLetterContent(String, Boolean, String, WdLetterStyle, Boolean, WdLetterheadLocation, Single, String, String, String, WdSalutationType, String, String, String, String, String, String, String, String, String, String, String, Int32, Object, Object, Object, Object, Object, Object, Object, Object) CreateLetterContent(String, Boolean, String, WdLetterStyle, Boolean, WdLetterheadLocation, Single, String, String, String, WdSalutationType, String, String, String, String, String, String, String, String, String, String, String, Int32, Object, Object, Object, Object, Object, Object, Object, Object) CreateLetterContent(String, Boolean, String, WdLetterStyle, Boolean, WdLetterheadLocation, Single, String, String, String, WdSalutationType, String, String, String, String, String, String, String, String, String, String, String, Int32, Object, Object, Object, Object, Object, Object, Object, Object)

Creates and returns a LetterContent object based on the specified letter elements.

(Inherited from _Document)

DataForm() DataForm() DataForm()

Displays the Data Form dialog box, in which you can add, delete, or modify data records.

(Inherited from _Document)

DeleteAllComments() DeleteAllComments() DeleteAllComments()

Deletes all comments from the Comments collection in a document.

(Inherited from _Document)

DeleteAllCommentsShown() DeleteAllCommentsShown() DeleteAllCommentsShown()

Deletes all revisions in a specified document that are displayed on the screen.

(Inherited from _Document)

DeleteAllEditableRanges(Object) DeleteAllEditableRanges(Object) DeleteAllEditableRanges(Object)

Deletes permissions in all ranges for which the specified user or group of users has permission to modify.

(Inherited from _Document)

DeleteAllInkAnnotations() DeleteAllInkAnnotations() DeleteAllInkAnnotations()

Deletes all handwritten ink annotations in a document.

(Inherited from _Document)

DetectLanguage() DetectLanguage() DetectLanguage()

Analyzes the specified text to determine the language that it is written in.

(Inherited from _Document)

DowngradeDocument() DowngradeDocument() 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.

(Inherited from _Document)

Dummy1() Dummy1() Dummy1()

Reserved for internal use.

(Inherited from _Document)

Dummy2() Dummy2() Dummy2()

Reserved for internal use.

(Inherited from _Document)

Dummy3() Dummy3() Dummy3()

Reserved for internal use.

(Inherited from _Document)

Dummy4() Dummy4() Dummy4()

Reserved for internal use.

(Inherited from _Document)

EditionOptions(WdEditionType, WdEditionOption, String, Object) EditionOptions(WdEditionType, WdEditionOption, String, Object) EditionOptions(WdEditionType, WdEditionOption, String, Object)

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

EndReview() EndReview() EndReview()

Terminates a review of a file that has been sent for review using the SendForReview(Object, Object, Object, Object) method or that has been automatically placed in a review cycle by sending a document to another user in an e-mail message.

(Inherited from _Document)

ExportAsFixedFormat(String, WdExportFormat, Boolean, WdExportOptimizeFor, WdExportRange, Int32, Int32, WdExportItem, Boolean, Boolean, WdExportCreateBookmarks, Boolean, Boolean, Boolean, Object) ExportAsFixedFormat(String, WdExportFormat, Boolean, WdExportOptimizeFor, WdExportRange, Int32, Int32, WdExportItem, Boolean, Boolean, WdExportCreateBookmarks, Boolean, Boolean, Boolean, Object) ExportAsFixedFormat(String, WdExportFormat, Boolean, WdExportOptimizeFor, WdExportRange, Int32, Int32, WdExportItem, Boolean, Boolean, WdExportCreateBookmarks, Boolean, Boolean, Boolean, Object)

Saves a document as PDF or XPS format.

(Inherited from _Document)

FitToPages() FitToPages() FitToPages()

Decreases the font size of text just enough so that the document will fit on one fewer pages.

(Inherited from _Document)

Displays a cached document if it's already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.

(Inherited from _Document)

ForwardMailer() ForwardMailer() ForwardMailer()

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

FreezeLayout() FreezeLayout() 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.

(Inherited from _Document)

GetCrossReferenceItems(Object) GetCrossReferenceItems(Object) GetCrossReferenceItems(Object)

Returns an array of items that can be cross-referenced based on the specified cross-reference type.

(Inherited from _Document)

GetLetterContent() GetLetterContent() GetLetterContent()

Retrieves letter elements from the specified document and returns a LetterContent object.

(Inherited from _Document)

GetWorkflowTasks() GetWorkflowTasks() GetWorkflowTasks()

Returns the workflow tasks assigned to a document.

(Inherited from _Document)

GetWorkflowTemplates() GetWorkflowTemplates() GetWorkflowTemplates()

Returns the workflow templates attached to a document.

(Inherited from _Document)

GoTo(Object, Object, Object, Object) GoTo(Object, Object, Object, Object) GoTo(Object, Object, Object, Object)

Returns a Range object that represents the start position of the specified item.

(Inherited from _Document)

LockServerFile() LockServerFile() LockServerFile()

Locks the file on the server preventing anyone else from editing it.

(Inherited from _Document)

MakeCompatibilityDefault() MakeCompatibilityDefault() MakeCompatibilityDefault()

Sets the compatibility options on the Compatibility tab in the Options dialog box (Tools menu) as the default settings for new documents.

(Inherited from _Document)

ManualHyphenation() ManualHyphenation() ManualHyphenation()

Initiates manual hyphenation of a document, one line at a time. The user is prompted to accept or decline suggested hyphenations.

(Inherited from _Document)

Merge(String, Object, Object, Object, Object) Merge(String, Object, Object, Object, Object) Merge(String, Object, Object, Object, Object)

Merges the changes marked with revision marks from one document to another.

(Inherited from _Document)

Merge2000(String) Merge2000(String) Merge2000(String)

Reserved for internal use.

(Inherited from _Document)

Post() Post() Post()

Posts the specified document to a public folder in Microsoft Exchange. This method displays the Send to Exchange Folder dialog box so that a folder can be selected.

(Inherited from _Document)

PresentIt() PresentIt() PresentIt()

Opens PowerPoint with the specified Word document loaded.

(Inherited from _Document)

PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Prints all or part of the specified document.

(Inherited from _Document)

PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

(Inherited from _Document)

PrintOutOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOutOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOutOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

(Inherited from _Document)

PrintPreview() PrintPreview() PrintPreview()

Switches the view to print preview.

(Inherited from _Document)

Protect(WdProtectionType, Object, Object, Object, Object) Protect(WdProtectionType, Object, Object, Object, Object) Protect(WdProtectionType, Object, Object, Object, Object)

Helps to protect the specified document from changes. When a document is protected, users can make only limited changes, such as adding annotations, making revisions, or completing a form.

(Inherited from _Document)

Protect2002(WdProtectionType, Object, Object) Protect2002(WdProtectionType, Object, Object) Protect2002(WdProtectionType, Object, Object)

Reserved for internal use.

(Inherited from _Document)

Range(Object, Object) Range(Object, Object) Range(Object, Object)

Returns a Range object by using the specified starting and ending character positions.

(Inherited from _Document)

RecheckSmartTags() RecheckSmartTags() RecheckSmartTags()

Removes smart tags recognized by the grammar checker and rechecks the document content against all smart tag recognizers.

(Inherited from _Document)

Redo(Object) Redo(Object) Redo(Object)

Redoes the last action that was undone (reverses the Undo(Object) method). Returns True if the actions were redone successfully.

(Inherited from _Document)

RejectAllRevisions() RejectAllRevisions() RejectAllRevisions()

Rejects all tracked changes in the specified document.

(Inherited from _Document)

RejectAllRevisionsShown() RejectAllRevisionsShown() RejectAllRevisionsShown()

Rejects all revisions in a document that are displayed on the screen.

(Inherited from _Document)

Reload() Reload() Reload()

Reloads a cached document by resolving the hyperlink to the document and downloading it.

(Inherited from _Document)

ReloadAs(MsoEncoding) ReloadAs(MsoEncoding) ReloadAs(MsoEncoding)

Reloads a document based on an HTML document, using the specified document encoding.

(Inherited from _Document)

RemoveDocumentInformation(WdRemoveDocInfoType) RemoveDocumentInformation(WdRemoveDocInfoType) RemoveDocumentInformation(WdRemoveDocInfoType)

Removes sensitive information, properties, comments, and other metadata from a document.

(Inherited from _Document)

RemoveDocumentWorkspaceHeader(String) RemoveDocumentWorkspaceHeader(String) RemoveDocumentWorkspaceHeader(String)

Reserved for internal use.

(Inherited from _Document)

RemoveLockedStyles() RemoveLockedStyles() RemoveLockedStyles()

Purges a document of locked styles when formatting restrictions have been applied in a document.

(Inherited from _Document)

RemoveNumbers(Object) RemoveNumbers(Object) RemoveNumbers(Object)

Removes numbers or bullets from the specified object.

(Inherited from _Document)

RemoveSmartTags() RemoveSmartTags() RemoveSmartTags()

Removes all smart tag information from a document.

(Inherited from _Document)

RemoveTheme() RemoveTheme() RemoveTheme()

Removes the active theme from the current document.

(Inherited from _Document)

Repaginate() Repaginate() Repaginate()

Repaginates the entire document.

(Inherited from _Document)

Reply() Reply() Reply()

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

ReplyAll() ReplyAll() ReplyAll()

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

ReplyWithChanges(Object) ReplyWithChanges(Object) ReplyWithChanges(Object)

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.

(Inherited from _Document)

ResetFormFields() ResetFormFields() ResetFormFields()

Clears all form fields in a document, preparing the form to be filled in again.

(Inherited from _Document)

ReturnToLastReadPosition() ReturnToLastReadPosition() ReturnToLastReadPosition()

Returns the active document to the last saved reading position, and returns an integer that represents that position.

(Inherited from _Document)

Route() Route() Route()

Routes the specified document, using the document's current routing slip.

(Inherited from _Document)

RunAutoMacro(WdAutoMacros) RunAutoMacro(WdAutoMacros) RunAutoMacro(WdAutoMacros)

Runs an auto macro that's stored in the specified document. If the specified auto macro doesn't exist, nothing happens.

(Inherited from _Document)

RunLetterWizard(Object, Object) RunLetterWizard(Object, Object) RunLetterWizard(Object, Object)

Runs the Letter Wizard on the specified document.

(Inherited from _Document)

Save() Save() Save()

Saves the specified document. If the document hasn't been saved before, the Save As dialog box prompts the user for a file name.

(Inherited from _Document)

SaveAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Saves the specified document with a new name or format. Some of the arguments for this method correspond to the options in the Save Asdialog box (File menu).

(Inherited from _Document)

SaveAs2(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveAs2(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveAs2(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

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 tab).

(Inherited from _Document)

SaveAs2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveAs2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveAs2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

(Inherited from _Document)

SaveAsQuickStyleSet(String) SaveAsQuickStyleSet(String) SaveAsQuickStyleSet(String)

Saves the group of quick styles currently in use.

(Inherited from _Document)

SaveCopyAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveCopyAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) SaveCopyAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Inherited from _Document

sblt(String) sblt(String) sblt(String)

Reserved for internal use.

(Inherited from _Document)

Select() Select() Select()

Selects the specified object.

(Inherited from _Document)

SelectAllEditableRanges(Object) SelectAllEditableRanges(Object) SelectAllEditableRanges(Object)

Selects all ranges for which the specified user or group of users has permission to modify.

(Inherited from _Document)

SelectContentControlsByTag(String) SelectContentControlsByTag(String) SelectContentControlsByTag(String)

Returns a ContentControls collection that represents all the content controls in a document with the tag value specified in the Tag parameter. Read-only.

(Inherited from _Document)

SelectContentControlsByTitle(String) SelectContentControlsByTitle(String) SelectContentControlsByTitle(String)

Returns a ContentControls collection that represents all the content controls in a document with the title specified in the Title parameter. Read-only.

(Inherited from _Document)

SelectLinkedControls(CustomXMLNode) SelectLinkedControls(CustomXMLNode) SelectLinkedControls(CustomXMLNode)

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.

(Inherited from _Document)

SelectNodes(String, String, Boolean) SelectNodes(String, String, Boolean) SelectNodes(String, String, Boolean)

Returns an XMLNodes collection that represents all the specified nodes in the order in which they appear in the document.

(Inherited from _Document)

SelectSingleNode(String, String, Boolean) SelectSingleNode(String, String, Boolean) SelectSingleNode(String, String, Boolean)

Returns an XMLNode object that represents a node in the specified document.

(Inherited from _Document)

SelectUnlinkedControls(CustomXMLPart) SelectUnlinkedControls(CustomXMLPart) SelectUnlinkedControls(CustomXMLPart)

Returns all of the content controls in a document that are not linked to an XML node in the document's XML data store. Read-only.

(Inherited from _Document)

SendFax(String, Object) SendFax(String, Object) SendFax(String, Object)

Sends the specified document as a fax, without any user interaction.

(Inherited from _Document)

SendFaxOverInternet(Object, Object, Object) SendFaxOverInternet(Object, Object, Object) SendFaxOverInternet(Object, Object, Object)

Sends a document to a fax service provider, who faxes the document to one or more specified recipients.

(Inherited from _Document)

SendForReview(Object, Object, Object, Object) SendForReview(Object, Object, Object, Object) SendForReview(Object, Object, Object, Object)

Sends a document in an e-mail message for review by the specified recipients.

(Inherited from _Document)

SendMail() SendMail() SendMail()

Opens a message window for sending the specified document through Microsoft Exchange.

(Inherited from _Document)

SendMailer(Object, Object) SendMailer(Object, Object) SendMailer(Object, Object)

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

SetCompatibilityMode(Int32) SetCompatibilityMode(Int32) SetCompatibilityMode(Int32)

Sets the compatibility mode for the document.

(Inherited from _Document)

SetDefaultTableStyle(Object, Boolean) SetDefaultTableStyle(Object, Boolean) SetDefaultTableStyle(Object, Boolean)

Specifies the table style to use for newly created tables in a document.

(Inherited from _Document)

SetLetterContent(Object) SetLetterContent(Object) SetLetterContent(Object)

Inserts the contents of the specified LetterContent object into a document.

(Inherited from _Document)

SetPasswordEncryptionOptions(String, String, Int32, Object) SetPasswordEncryptionOptions(String, String, Int32, Object) SetPasswordEncryptionOptions(String, String, Int32, Object)

Sets the options Microsoft Word uses for encrypting documents with passwords.

(Inherited from _Document)

ToggleFormsDesign() ToggleFormsDesign() ToggleFormsDesign()

Toggles form design mode on or off.

(Inherited from _Document)

TransformDocument(String, Boolean) TransformDocument(String, Boolean) TransformDocument(String, Boolean)

Applies the specified Extensible Stylesheet Language Transformation (XSLT) file to the specified document and replaces the document with the results.

(Inherited from _Document)

Undo(Object) Undo(Object) Undo(Object)

Undoes the last action or a sequence of actions, which are displayed in the Undo list. Returns True if the actions were successfully undone.

(Inherited from _Document)

UndoClear() UndoClear() UndoClear()

Clears the list of actions that can be undone for the specified document. Corresponds to the list of items that appears when you click the arrow beside the Undo button on the Standard toolbar.

(Inherited from _Document)

UnfreezeLayout() UnfreezeLayout() UnfreezeLayout()

Reverses the effect of UnfreezeLayout(), and enables line breaks to change and ink annotations to move when you resize the Web browser window.

(Inherited from _Document)

Unprotect(Object) Unprotect(Object) Unprotect(Object)

Removes protection from the specified document. If the document isn't protected, this method generates an error.

(Inherited from _Document)

UpdateStyles() UpdateStyles() UpdateStyles()

Copies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.

(Inherited from _Document)

UpdateSummaryProperties() UpdateSummaryProperties() UpdateSummaryProperties()

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Document)

ViewCode() ViewCode() ViewCode()

Displays the code window for the selected ActiveX control in the specified document.

(Inherited from _Document)

ViewPropertyBrowser() ViewPropertyBrowser() ViewPropertyBrowser()

Displays the property window for the selected ActiveX control in the specified document.

(Inherited from _Document)

WebPagePreview() WebPagePreview() WebPagePreview()

Displays a preview of the current document as it would look if saved as a Web page.

(Inherited from _Document)

Events

BuildingBlockInsert BuildingBlockInsert BuildingBlockInsert

Occurs when you insert a building block into a document.

(Inherited from DocumentEvents2_Event)

Close Close Close

Occurs when a document is closed.

(Inherited from DocumentEvents2_Event)

ContentControlAfterAdd ContentControlAfterAdd ContentControlAfterAdd

Occurs after adding a content control to a document.

(Inherited from DocumentEvents2_Event)

ContentControlBeforeContentUpdate ContentControlBeforeContentUpdate ContentControlBeforeContentUpdate

Occurs before updating the content in a content control, only when the content comes from the Office XML data store.

(Inherited from DocumentEvents2_Event)

ContentControlBeforeDelete ContentControlBeforeDelete ContentControlBeforeDelete

Occurs before removing a content control from a document.

(Inherited from DocumentEvents2_Event)

ContentControlBeforeStoreUpdate ContentControlBeforeStoreUpdate ContentControlBeforeStoreUpdate

Occurs before updating the document's XML data store with the value of a content control.

(Inherited from DocumentEvents2_Event)

ContentControlOnEnter ContentControlOnEnter ContentControlOnEnter

Occurs when a user enters a content control.

(Inherited from DocumentEvents2_Event)

ContentControlOnExit ContentControlOnExit ContentControlOnExit

Occurs when a user leaves a content control.

(Inherited from DocumentEvents2_Event)

New New New

Occurs when a new document based on the template is created.

(Inherited from DocumentEvents2_Event)

Open Open Open

Occurs when a document is opened.

(Inherited from DocumentEvents2_Event)

Sync Sync Sync

Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server.

(Inherited from DocumentEvents2_Event)

XMLAfterInsert XMLAfterInsert XMLAfterInsert

Occurs when a user adds a new XML element to a document.

(Inherited from DocumentEvents2_Event)

XMLBeforeDelete XMLBeforeDelete XMLBeforeDelete

Occurs when a user deletes an XML element from a document.

(Inherited from DocumentEvents2_Event)

Applies to