Click to Rate and Give Feedback

  Switch on low bandwidth view
Members FilterMembers Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Tools for Office API Reference
Document Methods (2007 System)

The Document type exposes the following members.

  NameDescription
Public methodAcceptAllRevisionsAccepts all tracked changes in the document.
Public methodAcceptAllRevisionsShownAccepts all revisions in the document that are displayed on the screen.
Public methodActivateGives focus to the document.
Public methodAddDocumentWorkspaceHeaderInfrastructure.
Public methodAddMeetingWorkspaceHeaderInfrastructure.
Public methodAddToFavoritesCreates a shortcut to the document and adds it to the Favorites folder.
Public methodApplyDocumentThemeApplies a document theme to a document.
Public methodApplyQuickStyleSetChanges the set of quick styles.
Public methodApplyThemeApplies a theme to a document, if the document is open.
Public methodAutoFormatAutomatically formats the document. Use the Kind property to specify a format type.
Public methodAutoSummarizeCreates an automatic summary of the document.
Public methodBeginInitInfrastructure.
Public methodCanCheckinDetermines whether Microsoft Office Word can check in the document to a server.
Public methodCheckConsistencySearches all text in a Japanese language document and displays instances where character usage is inconsistent for the same words.
Public methodCheckGrammarBegins a spelling and grammar check for the document.
Public methodCheckInPuts a document on a server from a local computer, and sets the local document to read-only so that it cannot be edited locally.
Public methodCheckInWithVersionPuts a document on a server from a local computer, and sets the local document to read-only so that it cannot be edited locally.
Public methodCheckNewSmartTagsAccesses the Microsoft Office Web site for available smart tag recognizer and action files.
Public methodCheckSpellingBegins a spelling check for the document.
Protected methodCheckValidState (Inherited from RemoteComponent.)
Public methodCloseCloses the document.
Public methodClosePrintPreviewSwitches the document from print preview to the previous view. If the document is not in print preview, an exception is thrown.
Public methodCompareDisplays revision marks that indicate where the document differs from another document.
Public methodCompare2000Infrastructure.
Public methodCompare2002Infrastructure.
Public methodComputeStatisticsGets a statistic based on the contents of the document.
Public methodConvertConverts the document to the newest file format and enables all new features.
Public methodConvertNumbersToTextChanges the list numbers and LISTNUM fields in the specified document to text.
Public methodConvertVietDocConverts a Vietnamese document to Unicode using a code page other than the default.
Public methodCopyStylesFromTemplateCopies styles from the specified template to a document.
Public methodCountNumberedItemsReturns the number of bulleted or numbered items and LISTNUM fields in the document.
Public methodCreateLetterContentCreates and returns a LetterContent object based on the specified letter elements.
Protected methodCreateRibbonExtensibilityObjectReturns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface.
Protected methodCreateRibbonObjectsReturns an array of OfficeRibbon objects to the CreateRibbonExtensibilityObject method.
Public methodDataFormDisplays the Data Form dialog box, in which you can add, delete, or modify data records.
Public methodDeleteAllCommentsDeletes all comments from the Comments collection in a document.
Public methodDeleteAllCommentsShownDeletes all revisions in the document that are displayed on the screen.
Public methodDeleteAllEditableRangesDeletes permissions in all ranges that the specified user or group of users has permission to modify.
Public methodDeleteAllInkAnnotationsDeletes all handwritten ink annotations in the document.
Public methodDetectLanguageAnalyzes the text in the document to determine the language that it is written in.
Public methodDisposeOverloaded. Releases the resources used by the Document.
Public methodDowngradeDocumentChanges a document to the Word 97-2003 document format so that it can be edited in a previous version of Microsoft Office Word.
Public methodDummy1Infrastructure.
Public methodDummy2Infrastructure.
Public methodDummy3Infrastructure.
Public methodDummy4Infrastructure.
Public methodEditionOptionsInfrastructure.
Public methodEndInitInfrastructure.
Public methodEndReviewTerminates 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.
Public methodEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExportAsFixedFormatSaves the document in PDF or XPS format.
Protected methodFinalize (Inherited from RemoteComponent.)
Protected methodFinishInitialization (Inherited from EntryPointComponentBase.)
Public methodFitToPagesDecreases the font size of text just enough so that the document will fit on one fewer pages.
Public methodFollowHyperlinkResolves a hyperlink, or displays a cached document if the document has already been downloaded.
Public methodForwardMailerInfrastructure.
Public methodFreezeLayoutFixes 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.
Public methodget_ActiveWritingStyleInfrastructure. Use the ActiveWritingStyle property instead of this method.
Public methodget_CompatibilityInfrastructure. Use the Compatibility property instead of this method.
Protected methodGetAutomationObjectCalled by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the document.
Public methodGetCrossReferenceItemsGets an array of items that can be cross-referenced based on the specified cross-reference type.
Public methodGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected methodGetHostItem<(Of <(T>)>) (Inherited from RemoteComponent.)
Public methodGetLetterContentRetrieves letter elements from the document and returns a LetterContent.
Protected methodGetObjectsInfrastructure.
Protected methodGetPrimaryControlInfrastructure.
Protected methodGetService (Inherited from RemoteComponent.)
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberGetVstoObjectReturns a document host item that extends the functionality of the specified native Word document.
Public methodGetWorkflowTasksReturns the workflow tasks that are assigned to the document.
Public methodGetWorkflowTemplatesReturns the workflow templates that are attached to the document.
Public methodGoToReturns a Microsoft.Office.Interop.Word..::.Range that represents the start position of the specified item, such as a page, bookmark, or field.
Public methodStatic memberHasVstoObjectReturns a value that indicates whether a Word Microsoft.Office.Tools.Word..::.Document host item has been created for the specified native Word Microsoft.Office.Interop.Word..::._Document.
Protected methodInitializeInfrastructure. (Overrides EntryPointComponentBase..::.Initialize()()().)
Protected methodInitializeControl (Inherited from RemoteComponent.)
Protected methodInitializeDataBindings (Inherited from EntryPointComponentBase.)
Public methodLockServerFileLocks the document on the server, which prevents anyone else from editing it.
Public methodMakeCompatibilityDefaultSets the compatibility options on the Compatibility tab in the Options dialog box as the default settings for new documents.
Public methodManualHyphenationInitiates manual hyphenation of a document, one line at a time. The user is prompted to accept or decline suggested hyphenations.
Protected methodMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodMergeMerges the changes marked with revision marks from one document to another.
Public methodMerge2000Infrastructure.
Protected methodOnBindingContextChanged (Inherited from EntryPointBindableComponentBase.)
Protected methodOnShutdownInfrastructure. (Overrides EntryPointComponentBase..::.OnShutdown()()().)
Protected methodOnStartupInfrastructure. (Overrides EntryPointComponentBase..::.OnStartup()()().)
Public methodPostPosts 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.
Public methodPresentItOpens Microsoft Office PowerPoint with the document loaded.
Public methodPrintOutPrints all or part of the document.
Public methodPrintOut2000Infrastructure.
Public methodPrintOutOldInfrastructure.
Public methodPrintPreviewSwitches the view to print preview.
Public methodProtectApplies one of several types of protection to the document.
Public methodProtect2002Infrastructure.
Protected methodProtectDocumentCalled by the Visual Studio Tools for Office runtime so that you can reapply password protection to the document after the cached data has been saved.
Public methodRangeReturns a Microsoft.Office.Interop.Word..::.Range by using the specified starting and ending character positions.
Public methodRecheckSmartTagsRemoves smart tags recognized by the grammar checker and rechecks the document content against all smart tag recognizers.
Public methodRedoPerforms the last action that was undone (reverses the Undo method).
Public methodRejectAllRevisionsRejects all tracked changes in the document.
Public methodRejectAllRevisionsShownRejects all revisions in the document that are displayed on the screen.
Public methodReloadReloads a cached document by resolving the hyperlink to the document and downloading the document.
Public methodReloadAsReloads a document based on an HTML document, using the specified document encoding.
Public methodRemoveCustomizationRemoves the Visual Studio Tools for Office customization from the document.
Public methodRemoveDocumentInformationRemoves metadata, such as properties and comments, from a document.
Public methodRemoveDocumentWorkspaceHeaderInfrastructure.
Public methodRemoveLockedStylesPurges a document of locked styles when formatting restrictions have been applied in a document.
Public methodRemoveNumbersRemoves numbers or bullets from the document.
Public methodRemoveSmartTagsRemoves all smart tag information from the document.
Public methodRemoveThemeRemoves the active theme from the document.
Public methodRepaginateRepaginates the entire document.
Public methodReplyOpens a new e-mail message for replying to the active message. The sender's address is included on the To: line.
Public methodReplyAllOpens 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.
Public methodReplyWithChangesSends 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.
Protected methodRequestServiceReturns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface in a document-level customization.
Public methodResetFormFieldsClears all form fields in a document, preparing the form to be filled in again.
Public methodRouteRoutes the document, using the document's current routing slip.
Public methodRunAutoMacroRuns an auto macro that is stored in the document.
Public methodRunLetterWizardRuns the Letter Wizard on the document.
Public methodSaveSaves the document. If the document has not been saved before, the Save As dialog box prompts the user for a file name.
Public methodSaveAsSaves 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.
Public methodSaveAs2000Infrastructure.
Public methodSaveAsQuickStyleSetSaves the group of quick styles currently in use.
Public methodsbltInfrastructure.
Public methodSelectSelects the document.
Public methodSelectAllEditableRangesSelects all ranges that the specified user or group of users has permission to modify.
Public methodSelectContentControlsByTagReturns all the content controls in the document that have the specified tag.
Public methodSelectContentControlsByTitleReturns all the content controls in the document that have the specified title.
Public methodSelectLinkedControlsReturns all the content controls in the document that are linked to the specified custom XML node.
Public methodSelectNodesGets 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.
Public methodSelectSingleNodeReturns a Microsoft.Office.Interop.Word..::.XMLNode object that represents the first node in the document that matches the XPath parameter.
Public methodSelectUnlinkedControlsReturns all the content controls in the document that are not linked to a custom XML part.
Public methodSendFaxSends the document as a fax, without any user interaction.
Public methodSendFaxOverInternetSends the document to a fax service provider, who faxes the document to one or more specified recipients.
Public methodSendForReviewSends the document in an e-mail message for review by the specified recipients.
Public methodSendMailOpens a message window for sending the document through Microsoft Exchange.
Public methodSendMailerInfrastructure.
Public methodset_ActiveWritingStyleInfrastructure.
Public methodset_CompatibilityInfrastructure.
Public methodSetDefaultTableStyleSpecifies the table style to use for newly created tables in the document.
Public methodSetLetterContentInserts the contents of the specified LetterContent into the document.
Public methodSetPasswordEncryptionOptionsSets the options Microsoft Office Word uses for encrypting documents with passwords.
Protected methodSetPrimaryCookie (Inherited from RemoteComponent.)
Public methodToggleFormsDesignSwitches form design mode on or off.
Public methodToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodTransformDocumentApplies the specified Extensible Stylesheet Language Transformation (XSLT) file to the document and replaces the document with the results.
Public methodUndoUndoes the last action or a sequence of actions, which are displayed in the Undo list. Returns true if the actions were successfully undone.
Public methodUndoClearClears 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 Standard toolbar.
Public methodUnfreezeLayoutReverses the effect of FreezeLayout, and enables line breaks to change and ink annotations to move when you resize the Web browser window.
Public methodUnprotectRemoves protection from the document.
Protected methodUnprotectDocumentCalled by the Visual Studio Tools for Office runtime so that you can remove password protection from the document and enable cached data to be saved.
Public methodUpdateStylesCopies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.
Public methodUpdateSummaryPropertiesUpdates the keyword and comment text in the Properties dialog box to reflect the AutoSummary content for the document.
Public methodViewCodeDisplays the code window for the selected ActiveX control in the document.
Public methodViewPropertyBrowserDisplays the property window for the selected ActiveX control in the specified document.
Public methodWebPagePreviewDisplays a preview of the document as it would look if saved as a Web page.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker