Document Interface

 

Represents a document in Word projects created by using the Office development tools in Visual Studio.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

[GuidAttribute("bf1b29c2-9873-41b7-9b45-f22c50432bb1")]
public interface Document : IBindableComponent, IComponent, IDisposable, 
	ISupportInitialize

NameDescription
System_CAPS_pubpropertyActiveTheme

Gets the name of the active theme plus the theme formatting options for the document.

System_CAPS_pubpropertyActiveThemeDisplayName

Gets the display name of the active theme for the document.

System_CAPS_pubpropertyActiveWindow

Gets a Window that represents the active window.

System_CAPS_pubpropertyActiveWritingStyle

Gets the writing style for a specified language in the document.

System_CAPS_pubpropertyApplication

Gets an Application that represents the creator of the document.

System_CAPS_pubpropertyAttachedTemplate

Gets or sets a T:Microsoft.Office.Interop.Word.Template that represents the template attached to the document.

System_CAPS_pubpropertyAutoFormatOverride

Gets or sets a value that indicates whether automatic formatting options override formatting restrictions in a document where formatting restrictions are in effect.

System_CAPS_pubpropertyAutoHyphenation

Gets or sets a value that indicates whether automatic hyphenation is turned on for the specified document.

System_CAPS_pubpropertyBackground

Gets or sets a Shape that represents the background image for the specified document.

System_CAPS_pubpropertyBibliography

Gets the bibliography references contained within the document.

System_CAPS_pubpropertyBindingContext

(Inherited from IBindableComponent.)

System_CAPS_pubpropertyBookmarks

Gets a Microsoft.Office.Interop.Word.Bookmarks collection that represents all the bookmarks in the document.

System_CAPS_pubpropertyBuiltInDocumentProperties

Gets a T:Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the document.

System_CAPS_pubpropertyCharacters

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

System_CAPS_pubpropertyChildNodeSuggestions

Gets an XMLChildNodeSuggestions collection that represents the list of allowed elements for the Document (which returns the root elements for all attached schemas) or for the XMLNode object (which returns the child elements of a specified element).

System_CAPS_pubpropertyClickAndTypeParagraphStyle

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

System_CAPS_pubpropertyCoAuthoring

Represents co-authoring-related functionality in the document.

System_CAPS_pubpropertyCommandBars

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

System_CAPS_pubpropertyComments

Gets a Comments collection that represents all the comments in the document.

System_CAPS_pubpropertyCompatibility

Gets a value that indicates whether the specified compatibility option is enabled.

System_CAPS_pubpropertyCompatibilityMode

Gets a value that specifies the compatibility mode that Word uses when opening the document.

System_CAPS_pubpropertyConsecutiveHyphensLimit

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

System_CAPS_pubpropertyContainer

Gets the container application for the document.

System_CAPS_pubpropertyContent

Gets a Range that represents the main document story.

System_CAPS_pubpropertyContentControls

Gets the collection of all the content controls in the document.

System_CAPS_pubpropertyContentTypeProperties

Gets the metadata that is stored in a document, such as author name, subject, and company.

This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010.

.

System_CAPS_pubpropertyControls

Gets the collection of managed controls that are contained on the document.

System_CAPS_pubpropertyCreator

Gets the application in which the document was created.

System_CAPS_pubpropertyCurrentRsid

Gets a random number that Microsoft Office Word assigns to changes in the document.

System_CAPS_pubpropertyCustomDocumentProperties

Gets a T:Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the document.

System_CAPS_pubpropertyCustomXMLParts

Returns the custom XML parts in the document.

System_CAPS_pubpropertyDataBindings

(Inherited from IBindableComponent.)

System_CAPS_pubpropertyDataHost

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubpropertyDefaultExtension

Gets the default extension for this Document object.

System_CAPS_pubpropertyDefaultTableStyle

Gets the table style that is applied to all newly created tables in the document.

System_CAPS_pubpropertyDefaultTabStop

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

System_CAPS_pubpropertyDefaultTargetFrame

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

System_CAPS_pubpropertyDisableFeatures

Gets or sets a value that indicates whether all features introduced after the version specified in the DisableFeaturesIntroducedAfter property are disabled.

System_CAPS_pubpropertyDisableFeaturesIntroducedAfter

Gets or sets a value that determines whether all features introduced after a specified version of Microsoft Office Word are disabled in the document only.

System_CAPS_pubpropertyDocumentInspectors

Gets a Microsoft.Office.Core.DocumentInspectors object that you can use to locate hidden personal information, such as author name, company name, and revision date.

System_CAPS_pubpropertyDocumentLibraryVersions

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

System_CAPS_pubpropertyDocumentTheme

Gets the Microsoft Office theme that is applied to the document.

System_CAPS_pubpropertyDoNotEmbedSystemFonts

Gets or sets a value that indicates whether Microsoft Office Word embeds common system fonts.

System_CAPS_pubpropertyEmail

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

System_CAPS_pubpropertyEmbedLinguisticData

Gets or sets a value that indicates whether Microsoft Office Word embeds speech and handwriting and controls text service data received from devices connected to Microsoft Office using the Windows Text Service Framework Application Programming Interface.

System_CAPS_pubpropertyEmbedTrueTypeFonts

Gets or sets a value that indicates whether Microsoft Office Word embeds TrueType fonts in a document when the document is saved.

System_CAPS_pubpropertyEncryptionProvider

Gets or sets the name of the algorithm encryption provider that Microsoft Office Word uses when encrypting documents.

System_CAPS_pubpropertyEndnotes

Gets an Endnotes collection that represents all the endnotes in the document.

System_CAPS_pubpropertyEnforceStyle

Gets or sets a value that indicates whether formatting restrictions are enforced in a protected document.

System_CAPS_pubpropertyEnvelope

Gets an Envelope that represents envelope functionality and the envelope in the document.

System_CAPS_pubpropertyExtension

Gets a custom extension for this Document object.

System_CAPS_pubpropertyFarEastLineBreakLanguage

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

System_CAPS_pubpropertyFarEastLineBreakLevel

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

System_CAPS_pubpropertyFields

Gets a read-only Fields collection that contains the fields in the main text story.

System_CAPS_pubpropertyFinal

Gets or sets a value that indicates whether the document is final.

System_CAPS_pubpropertyFootnotes

Gets a Footnotes collection that represents all the footnotes in the document.

System_CAPS_pubpropertyFormattingShowClear

Gets or sets a value that indicates whether Microsoft Office Word shows Clear Formatting in the Styles and Formatting task pane.

System_CAPS_pubpropertyFormattingShowFilter

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

System_CAPS_pubpropertyFormattingShowFont

Gets or sets a value that indicates whether Microsoft Office Word displays font formatting in the Styles and Formatting task pane.

System_CAPS_pubpropertyFormattingShowNextLevel

Gets or sets a value that indicates whether Microsoft Office Word shows the next heading level when the previous heading level is used.

System_CAPS_pubpropertyFormattingShowNumbering

Gets or sets a value that indicates whether Microsoft Office Word displays number formatting in the Styles and Formatting task pane.

System_CAPS_pubpropertyFormattingShowParagraph

Gets or sets a value that indicates whether Microsoft Office Word displays paragraph formatting in the Styles and Formatting task pane.

System_CAPS_pubpropertyFormattingShowUserStyleName

Gets or sets a value that indicates whether to show user-defined styles.

System_CAPS_pubpropertyFormFields

Gets a FormFields collection that represents all the form fields in the document.

System_CAPS_pubpropertyFormsDesign

Gets a value that indicates whether the document is in form design mode.

System_CAPS_pubpropertyFrames

Gets a Frames collection that represents all the frames in the document.

System_CAPS_pubpropertyFrameset

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

System_CAPS_pubpropertyFullName

Gets the name of the document, including the drive or Web path.

System_CAPS_pubpropertyGrammarChecked

Gets or sets a value that indicates whether a grammar check has been run on the document.

System_CAPS_pubpropertyGrammaticalErrors

Gets a ProofreadingErrors collection that represents the sentences that failed the grammar check on the document.

System_CAPS_pubpropertyGridDistanceHorizontal

Gets or sets the amount of horizontal space between the invisible gridlines that Microsoft Office Word uses when you draw, move, and resize AutoShapes or East Asian characters in the document.

System_CAPS_pubpropertyGridDistanceVertical

Gets or sets the amount of vertical space between the invisible gridlines that Microsoft Office Word uses when you draw, move, and resize AutoShapes or East Asian characters in the document.

System_CAPS_pubpropertyGridOriginFromMargin

Gets or sets a value that indicates whether Microsoft Office Word starts the character grid from the upper-left corner of the page.

System_CAPS_pubpropertyGridOriginHorizontal

Gets 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 document.

System_CAPS_pubpropertyGridOriginVertical

Gets 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 document.

System_CAPS_pubpropertyGridSpaceBetweenHorizontalLines

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

System_CAPS_pubpropertyGridSpaceBetweenVerticalLines

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

System_CAPS_pubpropertyHasMailer

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubpropertyHasPassword

Gets a value that indicates whether a password is required to open the document.

System_CAPS_pubpropertyHasVBProject

Gets a value that indicates whether the document has an attached Microsoft Visual Basic for Applications (VBA) project.

System_CAPS_pubpropertyHostContext

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubpropertyHTMLDivisions

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

System_CAPS_pubpropertyHyperlinks

Gets a Hyperlinks collection that represents all the hyperlinks in the document.

System_CAPS_pubpropertyHyphenateCaps

Gets or sets a value that indicates whether words in all capital letters can be hyphenated.

System_CAPS_pubpropertyHyphenationZone

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

System_CAPS_pubpropertyIndexes

Gets an Indexes collection that represents all the indexes in the document.

System_CAPS_pubpropertyInlineShapes

Gets an InlineShapes collection that represents all the InlineShape objects in the document.

System_CAPS_pubpropertyInnerObject

Gets a Microsoft.Office.Interop.Word.Document that represents the underlying native object for the Microsoft.Office.Tools.Word.Document.

System_CAPS_pubpropertyIsMasterDocument

Gets a value that indicates whether the document is a master document.

System_CAPS_pubpropertyIsSubdocument

Gets a value that indicates whether the document is opened in a separate document window as a subdocument of a master document.

System_CAPS_pubpropertyItemProvider

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubpropertyJustificationMode

Gets or sets the character spacing adjustment for the document.

System_CAPS_pubpropertyKerningByAlgorithm

Gets or sets a value that indicates whether Microsoft Office Word kerns half-width Latin characters and punctuation marks in the document.

System_CAPS_pubpropertyKind

Gets or sets the format type that Microsoft Office Word uses when automatically formatting the document.

System_CAPS_pubpropertyLanguageDetected

Gets or sets a value that indicates whether Microsoft Office Word has detected the language of the text in the document.

System_CAPS_pubpropertyListParagraphs

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

System_CAPS_pubpropertyLists

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

System_CAPS_pubpropertyListTemplates

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

System_CAPS_pubpropertyLockQuickStyleSet

Gets or sets a value that indicates whether users can change the set of Quick Styles that is being used.

System_CAPS_pubpropertyLockTheme

Gets or sets a value that indicates whether users can change the document theme.

System_CAPS_pubpropertyMailEnvelope

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

System_CAPS_pubpropertyMailer

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubpropertyMailMerge

Gets a MailMerge that represents the mail merge functionality for the document.

System_CAPS_pubpropertyName

Gets the name of the document.

System_CAPS_pubpropertyNoLineBreakAfter

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

System_CAPS_pubpropertyNoLineBreakBefore

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

System_CAPS_pubpropertyOMathBreakBin

Gets or sets a value that specifies where Microsoft Office Word places binary operators when equations span two or more lines.

System_CAPS_pubpropertyOMathBreakSub

Gets or sets a value that specifies how Microsoft Office Word handles a subtraction operator that falls before a line break.

System_CAPS_pubpropertyOMathFontName

Gets or sets the name of the font that is used in a document to display equations.

System_CAPS_pubpropertyOMathIntSubSupLim

Gets or sets a value that specifies the default location of limits for integrals.

System_CAPS_pubpropertyOMathJc

Gets or sets a value that indicates the default justification—left, right, centered, or centered as a group—of a group of equations.

System_CAPS_pubpropertyOMathLeftMargin

Gets or sets a value that specifies the left margin for equations.

System_CAPS_pubpropertyOMathNarySupSubLim

Gets or sets a value that specifies the default location of limits for n-ary objects other than integrals.

System_CAPS_pubpropertyOMathRightMargin

Gets or sets a value that represents the right margin for equations.

System_CAPS_pubpropertyOMaths

Gets the collection of T:Microsoft.Office.Interop.Word.OMath objects in the document.

System_CAPS_pubpropertyOMathSmallFrac

Gets or sets a value that indicates whether to use small fractions in equations contained within the document.

System_CAPS_pubpropertyOMathWrap

Gets or sets a value that specifies the placement of the second line of an equation that wraps to a new line.

System_CAPS_pubpropertyOpenEncoding

Gets the encoding used to open the document.

System_CAPS_pubpropertyOptimizeForWord97

Gets or sets a value that indicates whether Microsoft Office Word optimizes the document for viewing in Word 97 by disabling any incompatible formatting.

System_CAPS_pubpropertyOriginalDocumentTitle

Gets the title of the original document after performing a legal-blackline document compare operation.

System_CAPS_pubpropertyPageSetup

Gets or sets a PageSetup that is associated with the document.

System_CAPS_pubpropertyParagraphs

Gets a Paragraphs collection that represents all the paragraphs in the document.

System_CAPS_pubpropertyParent

Gets the parent object of the document.

System_CAPS_pubpropertyPassword

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

System_CAPS_pubpropertyPasswordEncryptionAlgorithm

Gets the algorithm Microsoft Office Word uses for encrypting documents with passwords.

System_CAPS_pubpropertyPasswordEncryptionFileProperties

Gets a value that indicates whether Microsoft Office Word encrypts file properties for password-protected documents.

System_CAPS_pubpropertyPasswordEncryptionKeyLength

Gets the key length of the algorithm Microsoft Office Word uses when encrypting documents with passwords.

System_CAPS_pubpropertyPasswordEncryptionProvider

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

System_CAPS_pubpropertyPath

Gets the disk or Web path of the document.

System_CAPS_pubpropertyPermission

Gets a Permission that represents the permission settings for the document.

System_CAPS_pubpropertyPrintFormsData

Gets or sets a value that indicates whether Microsoft Office Word prints onto a preprinted form only the data entered in the corresponding online form.

System_CAPS_pubpropertyPrintFractionalWidths

Gets or sets a value that indicates whether the document is formatted to use fractional point spacing to display and print characters.

System_CAPS_pubpropertyPrintPostScriptOverText

Gets or sets a value that indicates whether 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.

System_CAPS_pubpropertyPrintRevisions

Gets or sets a value that indicates whether revision marks are printed with the document.

System_CAPS_pubpropertyProtectionType

Gets the protection type for the document.

System_CAPS_pubpropertyReadabilityStatistics

Gets a ReadabilityStatistics collection that represents the readability statistics for the document.

System_CAPS_pubpropertyReadingLayoutSizeX

Gets or sets the width of pages in the document when it is displayed in reading layout view and is frozen for entering handwritten markup.

System_CAPS_pubpropertyReadingLayoutSizeY

Gets or sets the height of pages in the document when it is displayed in reading layout view and is frozen for entering handwritten markup.

System_CAPS_pubpropertyReadingModeLayoutFrozen

Gets or sets a value that indicates whether pages displayed in reading layout view are frozen to a specified size for inserting handwritten markup into a document.

System_CAPS_pubpropertyReadOnly

Gets a value that indicates whether changes to the document cannot be saved to the original document.

System_CAPS_pubpropertyReadOnlyRecommended

Gets or sets a value that indicates whether Microsoft Office Word displays a message whenever a user opens the document, suggesting that the document be opened as read-only.

System_CAPS_pubpropertyRemoveDateAndTime

Gets or sets a value that indicates whether a document stores the date and time metadata for tracked changes.

System_CAPS_pubpropertyRemovePersonalInformation

Gets or sets a value that indicates whether Microsoft Office Word removes all user information from comments, revisions, and the Properties dialog box when the user saves the document.

System_CAPS_pubpropertyResearch

Gets the research service for the document.

System_CAPS_pubpropertyRevisedDocumentTitle

Gets the title of the revised document after performing a legal-blackline document compare operation.

System_CAPS_pubpropertyRevisions

Gets a Revisions collection that represents the tracked changes in the document.

System_CAPS_pubpropertySaved

Gets or sets a value that indicates whether the document has not changed since it was last saved.

System_CAPS_pubpropertySaveEncoding

Gets or sets the encoding to use when saving the document.

System_CAPS_pubpropertySaveFormat

Gets the file format of the document.

System_CAPS_pubpropertySaveFormsData

Gets or sets a value that indicates whether Microsoft Office Word saves the data entered in a form as a tab-delimited record for use in a database.

System_CAPS_pubpropertySaveSubsetFonts

Gets or sets a value that indicates whether Microsoft Office Word saves a subset of the embedded TrueType fonts with the document.

System_CAPS_pubpropertyScripts

Gets a Scripts collection that represents the collection of HTML scripts in the document.

System_CAPS_pubpropertySections

Gets a Sections collection that represents the sections in the document.

System_CAPS_pubpropertySentences

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

System_CAPS_pubpropertyServerPolicy

Gets the policy that is specified for the document, when the document is stored on a server that is running Microsoft Office SharePoint Server.

System_CAPS_pubpropertyShapes

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

System_CAPS_pubpropertyShowGrammaticalErrors

Gets or sets a value that indicates whether grammatical errors are marked by a wavy green line in the document.

System_CAPS_pubpropertyShowRevisions

Gets or sets a value that indicates whether tracked changes in the document are shown on the screen.

System_CAPS_pubpropertyShowSpellingErrors

Gets or sets a value that indicates whether Microsoft Office Word underlines spelling errors in the document.

System_CAPS_pubpropertySignatures

Gets a SignatureSet that represents the digital signatures for the document.

System_CAPS_pubpropertySite

(Inherited from IComponent.)

System_CAPS_pubpropertySmartDocument

Gets a SmartDocument that represents the settings for a smart document solution.

System_CAPS_pubpropertySnapToGrid

Gets or sets a value that indicates whether AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the document.

System_CAPS_pubpropertySnapToShapes

Gets or sets a value that indicates whether Microsoft Office 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 document.

System_CAPS_pubpropertySpellingChecked

Gets or sets a value that indicates whether spelling has been checked throughout the document.

System_CAPS_pubpropertySpellingErrors

Gets a ProofreadingErrors collection that represents the words identified as spelling errors in the document.

System_CAPS_pubpropertyStoryRanges

Gets a StoryRanges collection that represents all the stories in the document.

System_CAPS_pubpropertyStyles

Gets a Styles collection for the document.

System_CAPS_pubpropertyStyleSheets

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

System_CAPS_pubpropertyStyleSortMethod

Gets or sets a value that specifies the sort method to use when sorting styles in the Styles task pane.

System_CAPS_pubpropertySubdocuments

Gets a Subdocuments collection that represents all the subdocuments in the document.

System_CAPS_pubpropertySync

Gets a Sync object that provides access to the methods and properties of documents that are part of a Document Workspace.

System_CAPS_pubpropertyTables

Gets a Tables collection that represents all the tables in the document.

System_CAPS_pubpropertyTablesOfAuthorities

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

System_CAPS_pubpropertyTablesOfAuthoritiesCategories

Gets a TablesOfAuthoritiesCategories collection that represents the available table of authorities categories for the document.

System_CAPS_pubpropertyTablesOfContents

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

System_CAPS_pubpropertyTablesOfFigures

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

System_CAPS_pubpropertyTag

Gets or sets an object that contains data you want to save with the document.

System_CAPS_pubpropertyTextEncoding

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

System_CAPS_pubpropertyTextLineEnding

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

System_CAPS_pubpropertyTrackFormatting

Gets or sets a value that indicates whether to track formatting changes when change tracking is turned on.

System_CAPS_pubpropertyTrackMoves

Gets or sets a value that indicates whether to mark moved text when change tracking is turned on.

System_CAPS_pubpropertyTrackRevisions

Gets or sets a value that indicates whether changes are tracked in the document.

System_CAPS_pubpropertyType

Gets the document type (template or document).

System_CAPS_pubpropertyUpdateStylesOnOpen

Gets or sets a value that indicates whether the styles in the document are updated to match the styles in the attached template each time the document is opened.

System_CAPS_pubpropertyUseMathDefaults

Gets or sets a value that indicates whether to use the default math settings when creating new equations.

System_CAPS_pubpropertyUserControl

Gets or sets a value that indicates whether the document or application was created or opened by the user.

System_CAPS_pubpropertyVariables

Gets a Variables collection that represents the variables stored in the document.

System_CAPS_pubpropertyVBASigned

Gets a value that indicates whether the Visual Basic for Applications (VBA) project for the document has been digitally signed.

System_CAPS_pubpropertyVBProject

Gets the Microsoft.Vbe.Interop.VBProject for the document.

System_CAPS_pubpropertyVstoSmartTags

Gets the Microsoft.Office.Tools.SmartTagCollection associated with the document.

System_CAPS_pubpropertyWebOptions

Gets the WebOptions object, which contains document-level attributes used by Microsoft Office Word when you save a document as a Web page or open a Web page.

System_CAPS_pubpropertyWindows

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

System_CAPS_pubpropertyWordOpenXML

Gets an XML string that contains the contents of the document in the Word Open XML format.

System_CAPS_pubpropertyWords

Gets a Microsoft.Office.Interop.Word.Words collection that represents all the words in the document.

System_CAPS_pubpropertyWritePassword

Sets a password for saving changes to the document.

System_CAPS_pubpropertyWriteReserved

Gets a value that indicates whether the document is protected with a write password.

System_CAPS_pubpropertyXMLHideNamespaces

Gets a value that indicates whether to hide the XML namespaces in the list of elements in the XML Structure task pane.

System_CAPS_pubpropertyXMLNodes

Gets a Microsoft.Office.Interop.Word.XMLNodes collection that represents the collection of all XML elements within the document.

System_CAPS_pubpropertyXMLSaveDataOnly

Gets or sets a value that indicates whether Microsoft Office Word saves only the XML data or the entire document.

System_CAPS_pubpropertyXMLSaveThroughXSLT

Gets or sets the path and file name for the Extensible Stylesheet Language Transformation (XSLT) to apply when a user saves the document.

System_CAPS_pubpropertyXMLSchemaReferences

Gets an XMLSchemaReferences collection that represents the schemas attached to the document.

System_CAPS_pubpropertyXMLSchemaViolations

Gets a Microsoft.Office.Interop.Word.XMLNodes collection that represents all nodes in the document that have validation errors.

System_CAPS_pubpropertyXMLShowAdvancedErrors

Gets or sets a value that indicates whether error message text is generated from the built-in Microsoft Office Word error messages or from the Microsoft XML Core Services (MSXML) 5.0 component included with Office.

System_CAPS_pubpropertyXMLUseXSLTWhenSaving

Gets or sets a value that indicates whether to save a document through an Extensible Stylesheet Language Transformation (XSLT).

NameDescription
System_CAPS_pubmethodAcceptAllRevisions()

Accepts all tracked changes in the document.

System_CAPS_pubmethodAcceptAllRevisionsShown()

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

System_CAPS_pubmethodActivate()

Gives focus to the document.

System_CAPS_pubmethodAddToFavorites()

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

System_CAPS_pubmethodApplyDocumentTheme(String)

Applies a document theme to a document.

System_CAPS_pubmethodApplyQuickStyleSet2(Object)

Applies the specified quick style set to the document.

System_CAPS_pubmethodApplyTheme(String)

Applies a theme to a document, if the document is open.

System_CAPS_pubmethodAutoFormat()

Automatically formats the document. Use the Kind property to specify a format type.

System_CAPS_pubmethodBeginInit()

(Inherited from ISupportInitialize.)

System_CAPS_pubmethodCanCheckin()

Determines whether Microsoft Office Word can check in the document to a server.

System_CAPS_pubmethodCheckConsistency()

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

System_CAPS_pubmethodCheckGrammar()

Begins a spelling and grammar check for the document.

System_CAPS_pubmethodCheckIn(Boolean, Object, Boolean)

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.

System_CAPS_pubmethodCheckInWithVersion(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.

System_CAPS_pubmethodCheckSpelling(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Begins a spelling check for the document.

System_CAPS_pubmethodClose(Object, Object, Object)

Closes the document.

System_CAPS_pubmethodClosePrintPreview()

Switches the document from print preview to the previous view. If the document is not in print preview, an exception is thrown.

System_CAPS_pubmethodCompare(String, Object, Object, Object, Object, Object, Object, Object)

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

System_CAPS_pubmethodComputeStatistics(WdStatistic, Object)

Gets a statistic based on the contents of the document.

System_CAPS_pubmethodConvert()

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

System_CAPS_pubmethodConvertAutoHyphens()

Converts hyphens created by automatic hyphenation to manual hyphens.

System_CAPS_pubmethodConvertNumbersToText(Object)

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

System_CAPS_pubmethodConvertVietDoc(Int32)

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

System_CAPS_pubmethodCopyStylesFromTemplate(String)

Copies styles from the specified template to a document.

System_CAPS_pubmethodCountNumberedItems(Object, Object)

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

System_CAPS_pubmethodCreateLetterContent(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.

System_CAPS_pubmethodDataForm()

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

System_CAPS_pubmethodDeleteAllComments()

Deletes all comments from the Comments collection in a document.

System_CAPS_pubmethodDeleteAllCommentsShown()

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

System_CAPS_pubmethodDeleteAllEditableRanges(Object)

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

System_CAPS_pubmethodDeleteAllInkAnnotations()

Deletes all handwritten ink annotations in the document.

System_CAPS_pubmethodDetectLanguage()

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

System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodDowngradeDocument()

Changes a document to the Word 97-2003 document format so that it can be edited in a previous version of Microsoft Office Word.

System_CAPS_pubmethodEditionOptions(WdEditionType, WdEditionOption, String, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodEndInit()

(Inherited from ISupportInitialize.)

System_CAPS_pubmethodEndReview()

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

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

Saves the document in PDF or XPS format.

System_CAPS_pubmethodFitToPages()

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

System_CAPS_pubmethodFollowHyperlink(Object, Object, Object, Object, Object, Object, Object)

Resolves a hyperlink, or displays a cached document if the document has already been downloaded.

System_CAPS_pubmethodForwardMailer()

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodFreezeLayout()

Fixes the layout of the document in Web view as it currently appears so that line breaks remain fixed and ink annotations do not move when you resize the window.

System_CAPS_pubmethodGetCrossReferenceItems(Object)

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

System_CAPS_pubmethodGetLetterContent()

Retrieves letter elements from the document and returns a LetterContent.

System_CAPS_pubmethodGetWorkflowTasks()

Returns the workflow tasks that are assigned to the document.

System_CAPS_pubmethodGetWorkflowTemplates()

Returns the workflow templates that are attached to the document.

System_CAPS_pubmethodGoTo(Object, Object, Object, Object)

Returns a Microsoft.Office.Interop.Word.Range that represents the start position of the specified item, such as a page, bookmark, or field.

System_CAPS_pubmethodLockServerFile()

Locks the document on the server, which prevents anyone else from editing it.

System_CAPS_pubmethodMakeCompatibilityDefault()

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

System_CAPS_pubmethodManualHyphenation()

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

System_CAPS_pubmethodMerge(String, Object, Object, Object, Object)

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

System_CAPS_pubmethodPost()

Posts the 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.

System_CAPS_pubmethodPresentIt()

Opens Microsoft Office PowerPoint with the document loaded.

System_CAPS_pubmethodPrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Prints all or part of the document.

System_CAPS_pubmethodPrintPreview()

Switches the view to print preview.

System_CAPS_pubmethodProtect(WdProtectionType, Object, Object, Object, Object)

Applies one of several types of protection to the document.

System_CAPS_pubmethodRange(Object, Object)

Returns a Microsoft.Office.Interop.Word.Range by using the specified starting and ending character positions.

System_CAPS_pubmethodRedo(Object)

Performs the last action that was undone (reverses the Undo method).

System_CAPS_pubmethodRejectAllRevisions()

Rejects all tracked changes in the document.

System_CAPS_pubmethodRejectAllRevisionsShown()

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

System_CAPS_pubmethodReload()

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

System_CAPS_pubmethodReloadAs(MsoEncoding)

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

System_CAPS_pubmethodRemoveCustomization()

Removes the customization from the document.

System_CAPS_pubmethodRemoveDocumentInformation(WdRemoveDocInfoType)

Removes metadata, such as properties and comments, from a document.

System_CAPS_pubmethodRemoveLockedStyles()

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

System_CAPS_pubmethodRemoveNumbers(Object)

Removes numbers or bullets from the document.

System_CAPS_pubmethodRemoveTheme()

Removes the active theme from the document.

System_CAPS_pubmethodRepaginate()

Repaginates the entire document.

System_CAPS_pubmethodReply()

Opens a new e-mail message for replying to the active message. The sender's address is included on the To: line.

System_CAPS_pubmethodReplyAll()

Opens a new e-mail message for replying to the active message. The sender’s address and all other recipients' addresses are included on the To: and Cc: lines as appropriate.

System_CAPS_pubmethodReplyWithChanges(Object)

Sends an e-mail message to the author of a document that has been sent out for review, notifying him or her that a reviewer has completed review of the document.

System_CAPS_pubmethodResetFormFields()

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

System_CAPS_pubmethodRunAutoMacro(WdAutoMacros)

Runs an auto macro that is stored in the document.

System_CAPS_pubmethodRunLetterWizard(Object, Object)

Runs the Letter Wizard on the document.

System_CAPS_pubmethodSave()

Saves the document. If the document has not been saved before, the Save As dialog box prompts the user for a file name.

System_CAPS_pubmethodSaveAs2(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Saves the document with a new name or format. Some of the arguments for this method correspond to the options in the Save As dialog box.

System_CAPS_pubmethodSaveAsQuickStyleSet(String)

Saves the group of quick styles currently in use.

System_CAPS_pubmethodSelect()

Selects the document.

System_CAPS_pubmethodSelectAllEditableRanges(Object)

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

System_CAPS_pubmethodSelectContentControlsByTag(String)

Returns all the content controls in the document that have the specified tag.

System_CAPS_pubmethodSelectContentControlsByTitle(String)

Returns all the content controls in the document that have the specified title.

System_CAPS_pubmethodSelectLinkedControls(CustomXMLNode)

Returns all the content controls in the document that are linked to the specified custom XML node.

System_CAPS_pubmethodSelectNodes(String, String, Boolean)

Gets a Microsoft.Office.Interop.Word.XMLNodes collection that represents all the nodes that match the XPath parameter in the order in which they appear in the document.

System_CAPS_pubmethodSelectSingleNode(String, String, Boolean)

Returns a Microsoft.Office.Interop.Word.XMLNode object that represents the first node in the document that matches the XPath parameter.

System_CAPS_pubmethodSelectUnlinkedControls(CustomXMLPart)

Returns all the content controls in the document that are not linked to a custom XML part.

System_CAPS_pubmethodSendFax(String, Object)

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

System_CAPS_pubmethodSendFaxOverInternet(Object, Object, Object)

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

System_CAPS_pubmethodSendForReview(Object, Object, Object, Object)

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

System_CAPS_pubmethodSendMail()

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

System_CAPS_pubmethodSendMailer(Object, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodSetCompatibilityMode(Int32)

Sets the compatibility mode for the document.

System_CAPS_pubmethodSetDefaultTableStyle(Object, Boolean)

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

System_CAPS_pubmethodSetLetterContent(Object)

Inserts the contents of the specified LetterContent into the document.

System_CAPS_pubmethodSetPasswordEncryptionOptions(String, String, Int32, Object)

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

System_CAPS_pubmethodToggleFormsDesign()

Switches form design mode on or off.

System_CAPS_pubmethodTransformDocument(String, Boolean)

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

System_CAPS_pubmethodUndo(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.

System_CAPS_pubmethodUndoClear()

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

System_CAPS_pubmethodUnprotect(Object)

Removes protection from the document.

System_CAPS_pubmethodUpdateStyles()

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

System_CAPS_pubmethodUpdateSummaryProperties()

Updates the keyword and comment text in the Properties dialog box to reflect the AutoSummary content for the document.

System_CAPS_pubmethodViewCode()

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

System_CAPS_pubmethodViewPropertyBrowser()

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

System_CAPS_pubmethodWebPagePreview()

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

NameDescription
System_CAPS_pubeventActivateEvent

Occurs when the document becomes the active window.

System_CAPS_pubeventBeforeClose

Occurs immediately before the document closes.

System_CAPS_pubeventBeforeDoubleClick

Occurs when the editing area of the document window is double-clicked, before the default double-click action.

System_CAPS_pubeventBeforePrint

Occurs before the document is printed.

System_CAPS_pubeventBeforeRightClick

Occurs when the editing area of the document window is right-clicked, before the default right-click action.

System_CAPS_pubeventBeforeSave

Occurs before the document is saved.

System_CAPS_pubeventBindingContextChanged

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubeventBuildingBlockInsert

Occurs when a building block is inserted into a document.

System_CAPS_pubeventCloseEvent

Occurs when the document is closed.

System_CAPS_pubeventContentControlAfterAdd

Occurs after a content control is added to a document.

System_CAPS_pubeventContentControlBeforeContentUpdate

Occurs just before Microsoft Office Word updates the text in a content control, if the content control is bound to a custom XML part.

System_CAPS_pubeventContentControlBeforeDelete

Occurs just before a content control is deleted from the document.

System_CAPS_pubeventContentControlBeforeStoreUpdate

Occurs just before Microsoft Office Word updates data in a custom XML part that is bound to the content control (that is, after the text in the content control changes).

System_CAPS_pubeventContentControlOnEnter

Occurs when the user clicks in a content control, or when the cursor is moved into a content control programmatically.

System_CAPS_pubeventContentControlOnExit

Occurs when the user clicks outside a content control, or when the cursor is moved outside a content control programmatically.

System_CAPS_pubeventDeactivate

Occurs when the active document window loses focus.

System_CAPS_pubeventDisposed

(Inherited from IComponent.)

System_CAPS_pubeventMailMergeAfterMerge

Occurs after all records in a mail merge have merged successfully.

System_CAPS_pubeventMailMergeAfterRecordMerge

Occurs after each record in the data source successfully merges in a mail merge.

System_CAPS_pubeventMailMergeBeforeMerge

Occurs when a merge is executed, before any records merge.

System_CAPS_pubeventMailMergeBeforeRecordMerge

Occurs as a merge is executed for the individual records in a merge.

System_CAPS_pubeventMailMergeDataSourceLoad

Occurs when the data source is loaded for a mail merge.

System_CAPS_pubeventMailMergeWizardSendToCustom

Occurs when the custom button is clicked on step six of the Mail Merge Wizard.

System_CAPS_pubeventMailMergeWizardStateChange

Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.

System_CAPS_pubeventNew

Occurs when a new document is created.

System_CAPS_pubeventOpen

Occurs when the document is opened.

System_CAPS_pubeventSelectionChange

Occurs when the selection changes in the document window.

System_CAPS_pubeventShutdown

Occurs when the document host item shuts down.

System_CAPS_pubeventStartup

Occurs after the document is running and all the initialization code in the assembly has been run.

System_CAPS_pubeventSyncEvent

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

System_CAPS_pubeventWindowSize

Occurs when the document window is resized or moved.

System_CAPS_pubeventXMLAfterInsert

Occurs when a user adds a new XML element to a document. If more than one element is added to the document at the same time (for example, when cutting and pasting XML), the event is raised for each element that is inserted.

System_CAPS_pubeventXMLBeforeDelete

Occurs when a user deletes an XML element from a document. If more than one element is deleted from the document at the same time (for example, when cutting and pasting XML), the event is raised for each element that is deleted.

A Microsoft.Office.Tools.Word.Document object provides the same members as a Microsoft.Office.Interop.Word.Document object from the Word primary interop assembly, but it adds the following features:

In an application-level project, you can create a Microsoft.Office.Tools.Word.Document object by using the GetVstoObject method. For more information, see Extending Word Documents and Excel Workbooks in VSTO Add-ins at Run Time.

In a document-level project, you typically do not use Microsoft.Office.Tools.Word.Document objects directly. Instead, use the ThisDocument class to programmatically access the document in your project. The ThisDocument class derives most of its members from the Microsoft.Office.Tools.Word.DocumentBase class. This class redirects all calls to its members to an internal implementation of the Microsoft.Office.Tools.Word.Document interface in the Visual Studio Tools for Office runtime. For more information, see Programming Document-Level Customizations.

System_CAPS_noteNote

This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.

This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4 or later. In projects that target the .NET Framework 3.5, this type might have different members and the code examples provided for this type might not work. For documentation about this type in projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio 2008 documentation: http://go.microsoft.com/fwlink/?LinkId=160658.

Return to top
Show: