Expand Minimize
This topic has not yet been rated - Rate this topic

DocumentBase Methods

The DocumentBase type exposes the following members.

  NameDescription
Public method AcceptAllRevisions Accepts all tracked changes in the document.
Public method AcceptAllRevisionsShown Accepts all revisions in the document that are displayed on the screen.
Public method Activate Gives focus to the document.
Public method AddDocumentWorkspaceHeader Infrastructure.
Public method AddMeetingWorkspaceHeader Infrastructure.
Public method AddToFavorites Creates a shortcut to the document and adds it to the Favorites folder.
Public method ApplyDocumentTheme Applies a document theme to a document.
Public method ApplyQuickStyleSet Changes the set of quick styles.
Public method ApplyQuickStyleSet2 Applies the specified quick style set to the document.
Public method ApplyTheme Applies a theme to a document, if the document is open.
Public method AutoFormat Automatically formats the document. Use the Kind property to specify a format type.
Public method AutoSummarize Creates an automatic summary of the document.
Public method BeginInit Infrastructure.
Public method CanCheckin Determines whether Microsoft Office Word can check in the document to a server.
Public method CheckConsistency Searches all text in a Japanese language document and displays instances where character usage is inconsistent for the same words.
Public method CheckGrammar Begins a spelling and grammar check for the document.
Public method CheckIn 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.
Public method CheckInWithVersion 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.
Public method CheckNewSmartTags Accesses the Microsoft Office Web site for available smart tag recognizer and action files. 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.
.
Public method CheckSpelling Begins a spelling check for the document.
Public method Close Closes the document.
Public method ClosePrintPreview Switches the document from print preview to the previous view. If the document is not in print preview, an exception is thrown.
Public method Compare Displays revision marks that indicate where the document differs from another document.
Public method Compare2000 Infrastructure.
Public method Compare2002 Infrastructure.
Public method ComputeStatistics Gets a statistic based on the contents of the document.
Public method Convert Converts the document to the newest file format and enables all new features.
Public method ConvertAutoHyphens Converts hyphens created by automatic hyphenation to manual hyphens.
Public method ConvertNumbersToText Changes the list numbers and LISTNUM fields in the specified document to text.
Public method ConvertVietDoc Converts a Vietnamese document to Unicode using a code page other than the default.
Public method CopyStylesFromTemplate Copies styles from the specified template to a document.
Public method CountNumberedItems Returns the number of bulleted or numbered items and LISTNUM fields in the document.
Public method CreateLetterContent Creates and returns a LetterContent object based on the specified letter elements.
Protected method CreateRibbonExtensibilityObject Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface.
Protected method CreateRibbonObjects Returns an array of OfficeRibbon objects to the CreateRibbonExtensibilityObject method.
Public method DataForm Displays the Data Form dialog box, in which you can add, delete, or modify data records.
Public method DeleteAllComments Deletes all comments from the Comments collection in a document.
Public method DeleteAllCommentsShown Deletes all revisions in the document that are displayed on the screen.
Public method DeleteAllEditableRanges Deletes permissions in all ranges that the specified user or group of users has permission to modify.
Public method DeleteAllInkAnnotations Deletes all handwritten ink annotations in the document.
Public method DetectLanguage Analyzes the text in the document to determine the language that it is written in.
Public method Dispose Infrastructure. Releases the resources used by the DocumentBase.
Public method DowngradeDocument Changes a document to the Word 97-2003 document format so that it can be edited in a previous version of Microsoft Office Word.
Public method EditionOptions Infrastructure.
Public method EndInit Infrastructure.
Public method EndReview Terminates a review of a file that has been sent for review using the SendForReview method or that has been automatically placed in a review cycle by sending a document to another user in an e-mail message.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExportAsFixedFormat Saves the document in PDF or XPS format.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method FinishInitialization Infrastructure.
Public method FitToPages Decreases the font size of text just enough so that the document will fit on one fewer pages.
Public method FollowHyperlink Resolves a hyperlink, or displays a cached document if the document has already been downloaded.
Public method ForwardMailer Infrastructure.
Public method FreezeLayout 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.
Public method get_ActiveWritingStyle Infrastructure. Use the ActiveWritingStyle property instead of this method.
Public method get_Compatibility Infrastructure. Use the Compatibility property instead of this method.
Protected method GetAutomationObject Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the document.
Public method GetCrossReferenceItems Gets an array of items that can be cross-referenced based on the specified cross-reference type.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetHostItem<T> Infrastructure.
Public method GetLetterContent Retrieves letter elements from the document and returns a LetterContent.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWorkflowTasks Returns the workflow tasks that are assigned to the document.
Public method GetWorkflowTemplates Returns the workflow templates that are attached to the document.
Public method GoTo Returns a Range that represents the start position of the specified item, such as a page, bookmark, or field.
Protected method Initialize Infrastructure.
Protected method InitializeDataBindings Infrastructure.
Public method LockServerFile Locks the document on the server, which prevents anyone else from editing it.
Public method MakeCompatibilityDefault Sets the compatibility options on the Compatibility tab in the Options dialog box as the default settings for new documents.
Public method ManualHyphenation Initiates manual hyphenation of a document, one line at a time. The user is prompted to accept or decline suggested hyphenations.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Merge Merges the changes marked with revision marks from one document to another.
Public method Merge2000 Infrastructure.
Protected method OnShutdown Infrastructure.
Protected method OnStartup Infrastructure.
Public method Post 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.
Public method PresentIt Opens Microsoft Office PowerPoint with the document loaded.
Public method PrintOut Prints all or part of the document.
Public method PrintOut2000 Infrastructure.
Public method PrintOutOld Infrastructure.
Public method PrintPreview Switches the view to print preview.
Public method Protect Applies one of several types of protection to the document.
Public method Protect2002 Infrastructure.
Protected method ProtectDocument Provides you with an opportunity to reapply password protection to the document after the cached data has been saved.
Public method Range Returns a Range by using the specified starting and ending character positions.
Public method RecheckSmartTags Removes smart tags recognized by the grammar checker and rechecks the document content against all smart tag recognizers.
Public method Redo Performs the last action that was undone (reverses the Undo method).
Public method RejectAllRevisions Rejects all tracked changes in the document.
Public method RejectAllRevisionsShown Rejects all revisions in the document that are displayed on the screen.
Public method Reload Reloads a cached document by resolving the hyperlink to the document and downloading the document.
Public method ReloadAs Reloads a document based on an HTML document, using the specified document encoding.
Public method RemoveCustomization Removes the customization from the document.
Public method RemoveDocumentInformation Removes metadata, such as properties and comments, from a document.
Public method RemoveDocumentWorkspaceHeader Infrastructure.
Public method RemoveLockedStyles Purges a document of locked styles when formatting restrictions have been applied in a document.
Public method RemoveNumbers Removes numbers or bullets from the document.
Public method RemoveSmartTags Removes all smart tag information from the document. 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.
.
Public method RemoveTheme Removes the active theme from the document.
Public method Repaginate Repaginates the entire document.
Public method Reply Opens a new e-mail message for replying to the active message. The sender's address is included on the To: line.
Public method ReplyAll 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.
Public method ReplyWithChanges 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.
Protected method RequestService Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface in a document-level customization.
Public method ResetFormFields Clears all form fields in a document, preparing the form to be filled in again.
Public method Route Routes the document, using the document's current routing slip.
Public method RunAutoMacro Runs an auto macro that is stored in the document.
Public method RunLetterWizard Runs the Letter Wizard on the document.
Public method Save Saves the document. If the document has not been saved before, the Save As dialog box prompts the user for a file name.
Public method SaveAs 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.
Public method SaveAs2 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.
Public method SaveAs2000 Infrastructure.
Public method SaveAsQuickStyleSet Saves the group of quick styles currently in use.
Public method sblt Infrastructure.
Public method Select Selects the document.
Public method SelectAllEditableRanges Selects all ranges that the specified user or group of users has permission to modify.
Public method SelectContentControlsByTag Returns all the content controls in the document that have the specified tag.
Public method SelectContentControlsByTitle Returns all the content controls in the document that have the specified title.
Public method SelectLinkedControls Returns all the content controls in the document that are linked to the specified custom XML node.
Public method SelectNodes Gets a XMLNodes collection that represents all the nodes that match the XPath parameter in the order in which they appear in the document.
Public method SelectSingleNode Returns a XMLNode object that represents the first node in the document that matches the XPath parameter.
Public method SelectUnlinkedControls Returns all the content controls in the document that are not linked to a custom XML part.
Public method SendFax Sends the document as a fax, without any user interaction.
Public method SendFaxOverInternet Sends the document to a fax service provider, who faxes the document to one or more specified recipients.
Public method SendForReview Sends the document in an e-mail message for review by the specified recipients.
Public method SendMail Opens a message window for sending the document through Microsoft Exchange.
Public method SendMailer Infrastructure.
Public method set_ActiveWritingStyle Infrastructure.
Public method set_Compatibility Infrastructure.
Public method SetCompatibilityMode Sets the compatibility mode for the document.
Public method SetDefaultTableStyle Specifies the table style to use for newly created tables in the document.
Public method SetLetterContent
Public method SetPasswordEncryptionOptions Sets the options Microsoft Office Word uses for encrypting documents with passwords.
Public method ToggleFormsDesign Switches form design mode on or off.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransformDocument Applies the specified Extensible Stylesheet Language Transformation (XSLT) file to the document and replaces the document with the results.
Public method Undo Undoes the last action or a sequence of actions, which are displayed in the Undo list. Returns true if the actions were successfully undone.
Public method UndoClear 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 Standard toolbar.
Public method UnfreezeLayout Reverses the effect of FreezeLayout, and enables line breaks to change and ink annotations to move when you resize the Web browser window.
Public method Unprotect Removes protection from the document.
Protected method UnprotectDocument Provides you with an opportunity to remove password protection from the document and enable cached data to be saved.
Public method UpdateStyles Copies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.
Public method UpdateSummaryProperties Updates the keyword and comment text in the Properties dialog box to reflect the AutoSummary content for the document.
Public method ViewCode Displays the code window for the selected ActiveX control in the document.
Public method ViewPropertyBrowser Displays the property window for the selected ActiveX control in the specified document.
Public method WebPagePreview
Top
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.