_Document 接口

定义

这是 COM coclass(托管代码需要此 Coclass 来实现与相应的 COM 对象的互操作性)中的主接口。This is a primary interface in a COM coclass that is required by managed code for interoperability with the corresponding COM object. 仅当您想要使用的方法与 COM 对象的事件共享同一名称时才使用此主接口;在这种情况下,转换为此接口以调用该方法,转换为最新的事件接口以连接到该事件。Use this primary interface only when the method you want to use shares the same name as an event of the COM object; in this case, cast to this interface to call the method, and cast to the latest events interface to connect to the event. 否则,请使用派生自 COM coclass 的 .NET 接口来访问方法、属性和 COM 对象的事件。Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object. 有关 COM 对象的信息,请参阅DocumentFor information about the COM object, see Document

public interface class _Document
[System.Runtime.InteropServices.Guid("0002096B-0000-0000-C000-000000000046")]
public interface _Document
type _Document = interface
Public Interface _Document
派生
属性

属性

_CodeName

仅供内部使用。Reserved for internal use.

ActiveTheme

返回活动主题名称以及主题格式选项为指定的文档。Returns the name of the active theme plus the theme formatting options for the specified document.

ActiveThemeDisplayName

返回指定文档的活动主题显示名称。Returns the display name of the active theme for the specified document.

ActiveWindow

返回一个 Window 对象,表示活动窗口。Returns a Window object that represents the active window.

ActiveWritingStyle[Object]

返回或设置指定文档中指定语言的写作风格。Returns or sets the writing style for a specified language in the specified document.

Application

返回一个 Application 对象,表示 Microsoft Word 应用程序。Returns an Application object that represents the Microsoft Word application.

AttachedTemplate

返回一个 Template object 类型的对象,该对象代表附加到指定文档的模板。Returns a Template object that represents the template attached to the specified document.

AutoFormatOverride

返回或设置一个 boolean 类型的值 ,该值代表是否自动设置格式替代格式设置限制的文档中的格式设置限制已生效。Returns or sets a Boolean that represents whether automatic formatting options override formatting restrictions in a document where formatting restrictions are in effect.

AutoHyphenation

确定是否为指定的文档打开了自动断字功能。Determines if automatic hyphenation is turned on for the specified document.

Background

返回一个 Shape 对象,表示指定文档的背景图像。Returns a Shape object that represents the background image for the specified document.

Bibliography

返回文档中包含的书目参考。Returns the bibliography references contained within a document. 只读。Read-only.

Bookmarks

返回一个 Bookmarks 集合,该集合代表文档中的所有书签。Returns a Bookmarks collection that represents all the bookmarks in a document.

Broadcast

返回一个广播对象,该对象表示一个广播会话,在该对象中,演示者可以向 web 上的远程参与者呈现 Word 文档,而无需参与者安装丰富的客户端。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.

BuiltInDocumentProperties

返回一个 DocumentProperties 集合,该集合代表指定文档的所有内置文档属性。Returns a DocumentProperties collection that represents all the built-in document properties for the specified document.

Characters

返回一个 Characters 集合,该集合代表文档中的字符。Returns a Characters collection that represents the characters in a document.

ChartDataPointTrack

返回或设置一个Boolean 类型的值(以 c # 为单位),用于指定活动文档中的图表是否使用单元格引用数据点跟踪。Returns or sets a Boolean (bool in C#) that specifies whether charts in the active document use cell-reference data-point tracking. 读写。Read-write.

ChildNodeSuggestions

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

ClickAndTypeParagraphStyle

返回或设置“即点即输”功能在指定文档中应用于文字的默认段落样式。Returns or sets the default paragraph style applied to text by the Click and Type feature in the specified document.

CoAuthoring

返回一个 CoAuthoring 对象,该对象提供文档中与共同创作相关的对象模型的入口点。Returns a CoAuthoring object that provides an entry point to co-authoring-related object model in the document.

CodeName

返回指定文档的代码名称。Returns the code name for the specified document.

CommandBars

返回一个 CommandBars 集合,该集合代表 Microsoft Word 中的菜单栏和所有工具栏。Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.

Comments

返回一个 Comments 集合,该集合代表指定文档中的所有批注。Returns a Comments collection that represents all the comments in the specified document.

Compatibility[WdCompatibility]

确定是否启用了指定的兼容性选项。Determines if the specified compatibility option is enabled.

CompatibilityMode

返回一个long ,该值指定 Word 2010 在打开文档时使用的兼容性模式。Returns a long that specifies the compatibility mode that Word 2010 uses when opening the document.

ConsecutiveHyphensLimit

返回或设置能够以连字符结尾的连续行的最大数目。Returns or sets the maximum number of consecutive lines that can end with hyphens.

Container

返回包含指定 OLE 对象的容器应用程序的对象。Returns the object that represents the container application for the specified OLE object.

Content

返回一个 Range 对象,表示主文档文章。Returns a Range object that represents the main document story.

ContentControls

返回文档中的所有内容控件。Returns all of the content controls in a document. 只读。Read-only.

ContentTypeProperties

返回存储在文档中的元数据,例如作者姓名、主题和公司。Returns the metadata stored in a document, such as author name, subject, and company. 只读。Read-only.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

CurrentRsid

返回 Word 为文档中的更改所分配的随机数。Returns a random number that Word assigns to changes in a document. 只读。Read-only.

CustomDocumentProperties

返回一个 DocumentProperties 集合,该集合代表指定文档的所有自定义文档属性。Returns a DocumentProperties collection that represents all the custom document properties for the specified document.

CustomXMLParts

返回一个 CustomXMLParts#SameCHM 集合,该集合代表 xml 数据存储区中的自定义 xml。Returns a CustomXMLParts#SameCHM collection that represents the custom XML in the XML data store. 只读。Read-only.

DefaultTableStyle

返回一个对象,表示应用于文档中新创建的所有表格的表格样式。Returns an Object that represents the table style that is applied to all newly created tables in a document.

DefaultTabStop

返回或设置指定文档中默认制表位之间的间隔 (以磅为单位)。Returns or sets the interval (in points) between the default tab stops in the specified document.

DefaultTargetFrame

返回或设置一个 字符串 ,表示用于显示通过超链接可到达网页的浏览器框架。Returns or sets a String indicating the browser frame in which to display a Web page reached through a hyperlink.

DisableFeatures

确定是否禁用了在属性中指定的版本之后引入的所有功能 DisableFeaturesIntroducedAfterDetermines if all features introduced after the version specified in the DisableFeaturesIntroducedAfter property are disabled.

DisableFeaturesIntroducedAfter

禁用的 Microsoft Word 仅在文档中指定的版本之后引入的所有功能。Disables all features introduced after a specified version of Microsoft Word in the document only.

DocID

仅供内部使用。Reserved for internal use.

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.

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.

DocumentTheme

返回一个 OfficeTheme 对象,表示应用于文档的 Microsoft Office 主题。Returns an OfficeTheme object that represents the Microsoft Office theme applied to a document. 只读。Read-only.

DoNotEmbedSystemFonts

确定 Microsoft Word 是否嵌入常用系统字体。Determines if Microsoft Word embeds common system fonts.

Email

返回一个 Email 对象,该对象包含当前文档的所有与电子邮件相关的属性。Returns an Email object that contains all the e-mail – related properties of the current document.

EmbedLinguisticData

确定 Microsoft Word 是否嵌入语音和手写,存储东亚输入法击键,并控制从设备接收的文本服务数据。Determines if Microsoft Word embeds speech and handwriting, stores East Asian IME keystrokes, and controls text service data received from devices.

EmbedSmartTags

确定 Microsoft Word 是否将智能标记信息保存在文档中。Determines if Microsoft Word saves the smart tag information in a document.

EmbedTrueTypeFonts

如果 Microsoft Word 在保存文档时在文档中嵌入 TrueType 字体,则返回TrueReturnsTrue if Microsoft Word embeds TrueType fonts in a document when it's saved.

EncryptionProvider

返回一个字符串,指定 Microsoft Office Word 在加密文档时使用的算法加密提供程序的名称。Returns a String specifying the name of the algorithm encryption provider that Microsoft Office Word uses when encrypting documents. 读/写。Read/write.

Endnotes

返回一个 Endnotes 集合,该集合代表区域、所选内容或文档中的所有尾注。Returns an Endnotes collection that represents all the endnotes in a range, selection, or document.

EnforceStyle

返回或设置一个 boolean 类型的值 ,该值代表是否在受保护的文档中实施格式设置限制。Returns or sets a Boolean that represents whether formatting restrictions are enforced in a protected document.

Envelope

返回一个 Envelope 对象,表示指定文档中的信封功能和信封。Returns an Envelope object that represents envelope functionality and the envelope in the specified document.

FarEastLineBreakLanguage

返回或设置在指定的文档或模板中换行文本时使用的东亚语言。Returns or sets the East Asian language to use when breaking lines of text in the specified document or template.

FarEastLineBreakLevel

返回或设置指定文档的行中断控制级别。Returns or sets the line break control level for the specified document.

Fields

返回一个只读集合, Fields 该集合代表文档、区域或选定内容中的所有字段。Returns a read-only Fields collection that represents all the fields in the document, range, or selection.

Final

返回或设置 Boolean 值,该值指示文档是否是最终的。Returns or sets a Boolean that indicates whether a document is final. 读/写。Read/write.

Footnotes

返回一个 Footnotes 集合,该集合代表某一区域、选定内容或文档中的所有脚注。Returns a Footnotes collection that represents all the footnotes in a range, selection, or document.

FormattingShowClear

确定 Microsoft Word 是否显示 "样式和格式" 任务窗格中的清除格式。Determines if Microsoft Word is to show clear formatting in the Styles and Formatting task pane.

FormattingShowFilter

返回或设置一个 WdShowFilter 常量,该常量代表在样式和格式任务窗格中显示的样式和格式。Returns or sets a WdShowFilter constant that represents the styles and formatting displayed in the Styles and Formatting task pane.

FormattingShowFont

确定 Microsoft Word 是否在 "样式和格式" 任务窗格中显示字体格式。Determines if Microsoft Word displays font formatting in the Styles and Formatting task pane.

FormattingShowNextLevel

返回或设置一个Boolean类型的值,该值代表在使用前一个标题级别时,Microsoft Office Word 是否显示下一个标题级别。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.

FormattingShowNumbering

确定 Microsoft Word 是否在 "样式和格式" 任务窗格中显示数字格式。Determines if Microsoft Word displays number formatting in the Styles and Formatting task pane.

FormattingShowParagraph

确定 Microsoft Word 是否在 "样式和格式" 任务窗格中显示段落格式。Determines if Microsoft Word displays paragraph formatting in the Styles and Formatting task pane.

FormattingShowUserStyleName

返回或设置一个 boolean 类型的值 ,该值表示是否显示用户定义的样式。Returns or sets a Boolean that represents whether to show user-defined styles. 读/写。Read/write.

FormFields

返回一个 FormFields 集合,该集合代表文档、区域或所选内容中的所有窗体域。Returns a FormFields collection that represents all the form fields in the document, range, or selection.

FormsDesign

如果指定的文档处于窗体设计模式,则返回TrueReturns True if the specified document is in form design mode.

Frames

返回一个 Frames 集合,该集合代表文档、区域或选定内容中的所有图文框。Returns a Frames collection that represents all the frames in a document, range, or selection.

Frameset

返回一个 Frameset object 类型的值,该值代表整个框架页或框架页上的单个框架。Returns a Frameset object that represents an entire frames page or a single frame on a frames page.

FullName

指定文档、模板或级联样式表的名称,包括驱动器或 Web 路径。Specifies the name of a document, template, or cascading style sheet, including the drive or Web path.

GrammarChecked

确定是否已对指定的区域或文档运行语法检查。Determines if a grammar check has been run on the specified range or document.

GrammaticalErrors

返回一个 ProofreadingErrors 集合,该集合代表在指定的文档或区域上进行语法检查失败的句子。Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified document or range.

GridDistanceHorizontal

返回或设置当您在指定的文档中绘制、移动和调整自选图形或东亚语言字符时,Microsoft Word 使用的不可见网格线之间的水平间距量。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.

GridDistanceVertical

返回或设置当您在指定的文档中绘制、移动和调整自选图形或东亚语言字符时,Microsoft Word 使用的不可见网格线之间的垂直间距量。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.

GridOriginFromMargin

确定 Microsoft Word 是否从页面的左上角开始字符网格。Determines if Microsoft Word starts the character grid from the upper-left corner of the page.

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.

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.

GridSpaceBetweenHorizontalLines

返回或设置 Microsoft Word 在页面视图中显示水平字符网格线的间隔。Returns or sets the interval at which Microsoft Word displays horizontal character gridlines in print layout view.

GridSpaceBetweenVerticalLines

返回或设置 Microsoft Word 在页面视图中显示垂直字符网格线的间隔。Returns or sets the interval at which Microsoft Word displays vertical character gridlines in print layout view.

HasMailer

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

HasPassword

如果需要密码才能打开指定的文档,则返回 TrueReturns True if a password is required to open the specified document.

HasRoutingSlip

确定指定的文档是否有附加的传送名单。Determines if the specified document has a routing slip attached to it.

HasVBProject

返回一个 boolean 类型的值 ,该值代表文档是否具有附加的 Microsoft Visual Basic for Applications 项目。Returns a Boolean that represents whether a document has an attached Microsoft Visual Basic for Applications project. 只读的。Read-only.

HTMLDivisions

返回一个 HTMLDivisions 对象,表示 Web 文档中的 HTML 划分。Returns an HTMLDivisions object that represents an HTML division in a Web document.

HTMLProject

返回 HTMLProject 指定文档中的一个对象,该对象表示一个顶级项目分支,就像在 Microsoft 脚本编辑器的 "项目资源管理器" 中一样。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.

Hyperlinks

返回一个 Hyperlinks 集合,该集合代表指定的文档、区域或选定内容中的所有超链接。Returns a Hyperlinks collection that represents all the hyperlinks in the specified document, range, or selection.

HyphenateCaps

确定是否可以对所有字母大写的单词断字。Determine if words in all capital letters can be hyphenated.

HyphenationZone

返回或设置断字区域的宽度,以磅为单位。Returns or sets the width of the hyphenation zone, in points.

Indexes

返回一个 Indexes 集合,该集合代表指定文档中的所有索引。Returns an Indexes collection that represents all the indexes in the specified document.

InlineShapes

返回一个 InlineShapes 集合,该集合代表 InlineShape 文档、区域或选定内容中的所有对象。Returns an InlineShapes collection that represents all the InlineShape objects in a document, range, or selection.

IsInAutosave

如此如果最近一次触发的DocumentBeforeSave 事件(Word)事件是自动保存的结果,而不是用户的手动保存。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.

IsMasterDocument

确定指定的文档是否为主控文档。Determines if the specified document is a master document.

IsSubdocument

确定是否将指定的文档作为主控文档的子文档在单独的文档窗口中打开。Determines if the specified document is opened in a separate document window as a subdocument of a master document.

JustificationMode

返回或设置指定文档字符间距的调整量。Returns or sets the character spacing adjustment for the specified document.

KerningByAlgorithm

确定 Microsoft Word kerns 半角拉丁字符和标点符号在指定文档中。Determines if Microsoft Word kerns half-width Latin characters and punctuation marks in the specified document.

Kind

返回或设置 Microsoft Word 在自动设置指定文档的格式时使用的格式类型。Returns or sets the format type that Microsoft Word uses when automatically formatting the specified document.

LanguageDetected

返回或设置一个值,指定 Word 是否已检测到指定的文本的语言。Returns or sets a value that specifies whether Microsoft Word has detected the language of the specified text.

ListParagraphs

返回一个 ListParagraphs 集合,该集合代表文档中的所有编号段落。Returns a ListParagraphs collection that represents all the numbered paragraphs in the document.

Lists

返回一个 Lists 集合,该集合包含指定文档中的所有已设置格式的列表。Returns a Lists collection that contains all the formatted lists in the specified document.

ListTemplates

返回一个 ListTemplates 集合,该集合代表指定文档的所有列表格式。Returns a ListTemplates collection that represents all the list formats for the specified document.

LockQuickStyleSet

返回或设置一个 Boolean,它代表用户是否可以更改使用的快速样式集。Returns or sets a Boolean that represents whether users can change which set of Quick Styles is being used. 读/写。Read/write.

LockTheme

返回或设置一个 boolean 类型的值 ,该值代表用户是否可以更改文档主题。Returns or sets a Boolean that represents whether a user can change a document theme. 读/写。Read/write.

MailEnvelope

返回一个 MsoEnvelope 对象,表示文档的电子邮件标题。Returns an MsoEnvelope object that represents an e-mail header for a document.

Mailer

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

MailMerge

返回一个 MailMerge 对象,表示指定文档的邮件合并功能。Returns a MailMerge object that represents the mail merge functionality for the specified document.

Name

返回指定对象的名称。Returns the name of the specified object.

NoLineBreakAfter

返回或设置行的首尾字符,该字符后,Microsoft Word 将不会中断。Returns or sets the kinsoku characters after which Microsoft Word will not break a line.

NoLineBreakBefore

返回或设置行的首尾字符,该字符之前的 Microsoft Word 不会中断。Returns or sets the kinsoku characters before which Microsoft Word will not break a line.

OMathBreakBin

返回或设置一个 WdOMathBreakBin 枚举值,该值代表当公式跨越两行或多行时,Microsoft Office Word 放置二进制运算符的位置。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.

OMathBreakSub

返回或设置一个 WdOMathBreakSub 枚举值,该值表示 Microsoft Office Word 如何处理位于换行符之前的减法运算符。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.

OMathFontName

返回文档中用于显示公式的字体的名称。Returns the name of the font used in a document to display equations. 读/写。Read/write.

OMathIntSubSupLim

返回或设置一个 boolean 类型的值 ,该值代表积分的限制的默认位置。Returns or sets a Boolean that represents the default location of limits for integrals. 读/写。Read/write.

OMathJc

返回或设置一组公式的默认对齐方式:左对齐、右对齐、居中或居中。Returns or sets the default justification—left, right, centered, or centered as a group—of a group of equations. 读/写。Read/write.

OMathLeftMargin

返回或设置公式的左边距。Returns or sets the left margin for equations. 读/写。Read/write.

OMathNarySupSubLim

返回或设置一个Boolean类型的值,该值代表除整型之外的元对象的限制的默认位置 nReturns or sets a Boolean that represents the default location of limits for n-ary objects other than integrals. 读/写。Read/write.

OMathRightMargin

返回或设置公式的右边距。Returns or sets the right margin for equations. 读/写。Read/write.

OMaths

返回 OMath 指定范围内的对象。Returns the OMath objects within the specified range. 只读。Read-only.

OMathSmallFrac

返回或设置一个 boolean 类型的值 ,该值代表是否在文档所包含的公式中使用小型分数。Returns or sets a Boolean that represents whether to use small fractions in equations contained within the document. 读/写。Read/write.

OMathWrap

返回换行到新行的公式的第二行的位置。Returns the placement of the second line of an equation that wraps to a new line. 读/写。Read/write.

OpenEncoding

返回用于打开指定的文档的编码。Returns the encoding used to open the specified document.

OptimizeForWord97

确定 Microsoft Word 是否优化当前文档以供在 Word 97 中查看。Determines if Microsoft Word optimizes the current document for viewing in Word 97.

OriginalDocumentTitle

在运行以精确比较的文档比较功能之后,返回原始文档的文档标题。Returns the document title for the original document after running a legal-blackline document compare function. 只读。Read-only.

PageSetup

返回 PageSetup 与指定文档相关联的对象。Returns a PageSetup object that's associated with the specified document.

Paragraphs

返回一个 Paragraphs 集合,该集合代表指定文档中的所有段落。Returns a Paragraphs collection that represents all the paragraphs in the specified document.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

Password

设置打开指定的文档时必须提供一个密码。Sets a password that must be supplied to open the specified document.

PasswordEncryptionAlgorithm

返回一个 字符串 ,表示 Microsoft Word 在用密码对文档加密时使用的算法。Returns a String indicating the algorithm Microsoft Word uses for encrypting documents with passwords.

PasswordEncryptionFileProperties

如果 Microsoft Word 对受密码保护的文档的文件属性进行加密,则返回 TrueReturns True if Microsoft Word encrypts file properties for password-protected documents.

PasswordEncryptionKeyLength

返回一个整数,表示在使用密码加密文档时,Microsoft Word 使用的算法的密钥长度。Returns an Integer indicating the key length of the algorithm Microsoft Word uses when encrypting documents with passwords.

PasswordEncryptionProvider

返回 Microsoft Word 在用密码对文档加密时使用的算法加密提供程序的名称。Returns the name of the algorithm encryption provider that Microsoft Word uses when encrypting documents with passwords.

Path

返回指定对象的磁盘或 Web 路径。Returns the disk or Web path to the specified object.

Permission

返回一个 Permission 对象,表示指定文档中的权限设置。Returns a Permission object that represents the permission settings in the specified document.

PrintFormsData

确定 Microsoft Word 是否只打印在相应的联机窗体中输入的预打印数据。Determines if Microsoft Word prints onto a preprinted form only the data entered in the corresponding online form.

PrintFractionalWidths

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

PrintPostScriptOverText

确定在使用 PostScript 打印机时,文档中的打印字段指令(如 PostScript 命令)是否在文本和图形上打印。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.

PrintRevisions

确定是否随文档一起打印修订标记。Determines if revision marks are printed with the document.

ProtectionType

返回指定文档的保护类型。Returns the protection type for the specified document.

ReadabilityStatistics

返回一个 ReadabilityStatistics 集合,该集合代表指定文档的可读性统计信息。Returns a ReadabilityStatistics collection that represents the readability statistics for the specified document.

ReadingLayoutSizeX

返回或设置一个Integer类型的值,该值代表文档中页面的宽度在阅读版式视图中显示且被冻结以输入手写标记时。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.

ReadingLayoutSizeY

返回或设置一个Integer类型的值,该值代表在阅读版式视图中显示并冻结以输入手写标记时文档中页面的高度。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.

ReadingModeLayoutFrozen

设置或返回一个 boolean 类型的值 ,该值代表是否在阅读版式视图中显示的页面冻结为指定大小以向文档插入手写的标记。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.

ReadOnly

确定对文档所做的更改是否无法保存到原始文档中。Determines if changes to the document cannot be saved to the original document.

ReadOnlyRecommended

确定当用户打开文档时,Word 是否显示一个消息框,建议以只读方式打开该文档。Determines if Word displays a message box whenever a user opens the document, suggesting that it be opened as read-only.

RemoveDateAndTime

返回或设置一个Boolean类型的值,该值指示文档是否存储所跟踪更改的日期和时间元数据。Returns or sets a Boolean indicating whether a document stores the date and time metadata for tracked changes.

RemovePersonalInformation

确定在保存文档时,Microsoft Word 是否从批注、修订和属性对话框中删除所有用户信息。Determines if Microsoft Word removes all user information from comments, revisions, and the Properties dialog box upon saving a document.

Research

返回文档的信息检索服务。Returns the research service for a document. 只读。Read-only.

RevisedDocumentTitle

在运行精确比较的文档比较功能之后,返回修订后的文档的文档标题。Returns the document title for a revised document after running a legal-blackline document compare function. 只读。Read-only.

Revisions

返回一个 Revisions 集合,该集合代表文档或区域中的修订。Returns a Revisions collection that represents the tracked changes in the document or range.

Routed

确定指定的文档是否已传送给下一个收件人。Determines if the specified document has been routed to the next recipient.

RoutingSlip

返回一个 RoutingSlip 对象,表示指定文档的传送名单信息。Returns a RoutingSlip object that represents the routing slip information for the specified document.

Saved

确定指定的文档或模板自上次保存后是否尚未更改。Determines if the specified document or template hasn't changed since it was last saved.

SaveEncoding

返回或设置保存文档时要使用的编码。Returns or sets the encoding to use when saving a document.

SaveFormat

返回一个Integer类型的值,该值代表指定的文档或文件转换器的文件格式。Returns an Integer representing the file format of the specified document or file converter.

SaveFormsData

确定 Microsoft Word 是否将在窗体中输入的数据保存为以制表符分隔的记录以在数据库中使用。Determines if Microsoft Word saves the data entered in a form as a tab-delimited record for use in a database.

SaveSubsetFonts

确定 Microsoft Word 是否在文档中保存嵌入的 TrueType 字体子集。Determines if Microsoft Word saves a subset of the embedded TrueType fonts with the document.

Scripts

返回一个 Scripts 集合,该集合代表指定对象中的 HTML 脚本的集合。Returns a Scripts collection that represents the collection of HTML scripts in the specified object.

Sections

返回一个 Sections 集合,该集合代表指定文档中的节。Returns a Sections collection that represents the sections in the specified document.

Sentences

返回一个 Sentences 集合,该集合代表文档中的所有句子。Returns a Sentences collection that represents all the sentences in the document.

ServerPolicy

返回为运行 Microsoft Office SharePoint Server 2007 的服务器上存储的文档指定的策略。Returns the policy specified for a document stored on a server running Microsoft Office SharePoint Server 2007. 只读。Read-only.

Shapes

返回一个 Shapes 集合,该集合代表 Shape 指定文档中的所有对象。Returns a Shapes collection that represents all the Shape objects in the specified document.

SharedWorkspace

返回一个 SharedWorkspace 对象,表示指定的文档所在的文档工作区。Returns a SharedWorkspace object that represents the Document Workspace in which a specified document is located.

ShowGrammaticalErrors

确定是否在指定文档中用绿色波浪线标记语法错误。Determines if grammatical errors are marked by a wavy green line in the specified document.

ShowRevisions

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

ShowSpellingErrors

确定 Microsoft Word 是否对文档中的拼写错误进行了下划线。Determines if Microsoft Word underlines spelling errors in the document.

ShowSummary

确定是否为指定的文档显示自动摘要。Determines if an automatic summary is displayed for the specified document.

Signatures

返回一个 SignatureSet 对象,表示文档的数字签名。Returns a SignatureSet object that represents the digital signatures for a document.

SmartDocument

返回一个 SmartDocument 对象,表示智能文档解决方案的设置。Returns a SmartDocument object that represents the settings for a smart document solution.

SmartTags

返回一个 SmartTags 对象,表示文档中的智能标记。Returns a SmartTags object that represents a smart tag in a document.

SmartTagsAsXMLProps

确定在将包含智能标记的文档另存为 HTML 时,Microsoft Word 是否创建包含智能标记信息的 XML 标头。Determines whether Microsoft Word creates an XML header containing smart tag information when a document containing smart tags is saved as HTML.

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.

SnapToShapes

确定 Microsoft Word 是否自动将自选图形或东亚语言字符与不可见的网格线对齐,这些网格线穿过其他自选图形或东亚语言字符在指定文档中的垂直和水平边缘。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.

SpellingChecked

确定是否已检查整个指定区域或文档中的拼写。Determines if spelling has been checked throughout the specified range or document.

SpellingErrors

返回一个 ProofreadingErrors 集合,该集合代表指定的文档或区域中被标识为拼写错误的单词。Returns a ProofreadingErrors collection that represents the words identified as spelling errors in the specified document or range.

StoryRanges

返回一个 StoryRanges 集合,该集合代表指定文档中的所有文章。Returns a StoryRanges collection that represents all the stories in the specified document.

Styles

返回 Styles 指定文档的集合。Returns a Styles collection for the specified document.

StyleSheets

返回一个 StyleSheets object 类型的对象,该对象代表附加到文档的 Web 样式表。Returns a StyleSheets object that represents the Web style sheets attached to a document.

StyleSortMethod

返回或设置在对 "样式" 任务窗格中的样式进行排序时使用的排序方法。Returns or sets the sort method to use when sorting styles in the Styles task pane. 读/写。Read/write.

Subdocuments

返回一个 Subdocuments 集合,该集合代表指定的区域或文档中的所有子文档。Returns a Subdocuments collection that represents all the subdocuments in the specified range or document.

SummaryLength

返回或设置摘要长度与文档长度的百分比。Returns or sets the length of the summary as a percentage of the document length.

SummaryViewMode

返回或设置摘要的显示方式。Returns or sets the way a summary is displayed.

Sync

返回一个 Sync 对象,该对象提供对文档工作区中的文档的方法和属性的访问。Returns a Sync object that provides access to the methods and properties for documents that are part of a Document Workspace.

Tables

返回一个 Tables 集合,该集合代表指定文档中的所有表格。Returns a Tables collection that represents all the tables in the specified document.

TablesOfAuthorities

返回一个 TablesOfAuthorities 集合,该集合代表指定文档中的引文目录。Returns a TablesOfAuthorities collection that represents the tables of authorities in the specified document.

TablesOfAuthoritiesCategories

返回一个 TablesOfAuthoritiesCategories 集合,该集合代表指定文档的引文目录类别的可用表。Returns a TablesOfAuthoritiesCategories collection that represents the available tables of authorities categories for the specified document.

TablesOfContents

返回一个 TablesOfContents 集合,该集合代表指定文档中的目录。Returns a TablesOfContents collection that represents the tables of contents in the specified document.

TablesOfFigures

返回一个 TablesOfFigures 集合,该集合代表指定文档中的图表目录。Returns a TablesOfFigures collection that represents the tables of figures in the specified document.

TextEncoding

返回或设置的代码页或字符集,则 Word 使用另存为编码的文本文件的文档。Returns or sets the code page, or character set, that Microsoft Word uses for a document saved as an encoded text file.

TextLineEnding

返回或设置一个 WdLineEndingType 常量,该常量表示 Microsoft Word 在保存为文本文件的文档中标记换行符和分段符的方式。Returns or sets a WdLineEndingType constant indicating how Microsoft Word marks the line and paragraph breaks in documents saved as text files.

TrackFormatting

返回或设置一个Boolean类型的值,该值表示是否在更改跟踪打开时跟踪格式更改。Returns or sets a Boolean that represents whether to track formatting changes when change tracking is turned on. 读/写。Read/write.

TrackMoves

返回或设置一个Boolean类型的值,该值代表是否在打开跟踪更改时标记移动的文本。Returns or sets aBoolean that represents whether to mark moved text when Track Changes is turned on. 读/写。Read/write.

TrackRevisions

确定是否在指定文档中跟踪更改。Determines if changes are tracked in the specified document.

Type

返回文档的类型(模板或文档)。Returns the document type (template or document).

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.

UseMathDefaults

返回或设置一个 boolean 类型的值 ,该值表示是否在创建新公式时使用默认数学设置。Returns or sets a Boolean that represents whether to use the default math settings when creating new equations. 读/写。Read/write.

UserControl

确定文档或应用程序是由用户创建还是打开。Determines if the document or application was created or opened by the user.

Variables

返回一个 Variables 集合,该集合代表指定文档中存储的变量。Returns a Variables collection that represents the variables stored in the specified document.

VBASigned

确定是否已对指定文档的 Visual Basic for Applications (VBA)项目进行了数字签名。Determines if the Visual Basic for Applications (VBA) project for the specified document has been digitally signed.

VBProject

返回的 VBProject 对象所指定的模板或文档。Returns the VBProject object for the specified template or document.

Versions

返回一个 Versions 集合,该集合代表指定文档的所有版本。Returns a Versions collection that represents all the versions of the specified document.

WebOptions

返回 WebOptions 对象,该对象包含 Microsoft Word 在将文档保存为网页或打开网页时所使用的文档级属性。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.

Windows

返回一个 Windows 集合,该集合代表指定文档的所有窗口(例如,".doc: 1" 和 "sales. doc: 2")。Returns a Windows collection that represents all windows for the specified document (for example, Sales.doc:1 and Sales.doc:2).

WordOpenXML

返回文档的 Word Open XML 内容的简单 XML 格式。Returns the flat XML format for the Word Open XML contents of the document. 只读。Read-only.

Words

返回一个 Words 集合,该集合代表文档中的所有单词。Returns a Words collection that represents all the words in a document.

WritePassword

该属性设置一个保存对指定文档所做的修改时所需的密码。Sets a password for saving changes to the specified document.

WriteReserved

确定指定的文档是否受写入密码保护。Determines if the specified document is protected with a write password.

XMLHideNamespaces

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

XMLNodes

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

XMLSaveDataOnly

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

XMLSaveThroughXSLT

返回或设置一个字符串,指定要在用户保存文档时应用的可扩展样式表语言转换(XSLT)的路径和文件名。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.

XMLSchemaReferences

返回一个 XMLSchemaReferences 集合,代表附加到文档的架构。Returns an XMLSchemaReferences collection that represents the schemas attached to a document.

XMLSchemaViolations

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

XMLShowAdvancedErrors

返回或设置一个 boolean 类型的值 ,该值代表是否从内置的 Word 错误消息或 Office 附带的 Microsoft XML Core Services (MSXML) (MSXML) 5.0 组件生成错误消息文本。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.

XMLUseXSLTWhenSaving

返回一个 boolean 类型的值 ,该值表示是否要保存文档通过可扩展样式表语言转换 (XSLT)。Returns a Boolean that represents whether to save a document through an Extensible Stylesheet Language Transformation (XSLT).

方法

AcceptAllRevisions()

接受对指定文档的所有修订。Accepts all tracked changes in the specified document.

AcceptAllRevisionsShown()

接受显示在屏幕上的指定文档中的所有修订。Accepts all revisions in the specified document that are displayed on the screen.

Activate()

激活指定的对象。Activates the specified object.

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

保留以供内部使用。 Reserved for internal use.

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

保留以供内部使用。Reserved for internal use.

AddToFavorites()

创建文档或超链接的快捷方式,并将其添加到"收藏夹"。Creates a shortcut to the document or hyperlink and adds it to the Favorites folder.

ApplyDocumentTheme(String)

将文档主题应用于文档。Applies a document theme to a document.

ApplyQuickStyleSet(String)

更改列出的快速样式集。Changes the set of quick styles listed.

ApplyQuickStyleSet2(Object)

将指定的快速样式集应用于文档。Applies the specified Quick Style set to the document.

ApplyTheme(String)

将主题应用于打开的文档。Applies a theme to an open document.

AutoFormat()

自动设置文档格式。Automatically formats a document.

AutoSummarize(Object, Object, Object)

创建指定文档的自动摘要,并返回一个 Range 对象。Creates an automatic summary of the specified document, and returns a Range object.

CanCheckin()

确定 Microsoft Word 是否可以将指定文档签入到服务器。Determines if Microsoft Word can check in a specified document to a server.

CheckConsistency()

搜索日语文档中的所有文字,并显示对相同单词的字符用法不一致的实例。Searches all text in a Japanese language document and displays instances where character usage is inconsistent for the same words.

CheckGrammar()

开始对指定的文档或区域执行拼写和语法检查。Begins a spelling and grammar check for the specified document or range.

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.

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.

CheckNewSmartTags()

访问 Microsoft Office 网站获取可用的智能标记识别器和操作文件。Accesses the Microsoft Office Web site for available smart tag recognizer and action files.

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

开始对指定的文档或区域进行拼写检查。Begins a spelling check for the specified document or range.

Close(Object, Object, Object)

关闭指定的一个或一篇文档。Closes the specified document or documents.

ClosePrintPreview()

将指定文档从打印预览视图切换到以前的视图。Switches the specified document from print preview to the previous view. 如果指定文档未处于打印预览视图,将出现错误。If the specified document isn't in print preview, an error occurs.

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

显示修订标记,以表明指定的文档与另一个文档的区别。Displays revision marks that indicate where the specified document differs from another document.

Compare2000(String)

保留以供内部使用。 Reserved for internal use.

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

保留以供内部使用。Reserved for internal use.

ComputeStatistics(WdStatistic, Object)

返回基于指定文档内容的统计值。Returns a statistic based on the contents of the specified document.

Convert()

将文件转换成最新的文件格式,并启用所有新功能。Converts file to the newest file format and enables all new features.

ConvertAutoHyphens()

将由自动断字功能创建的连字符转换为手动连字符。Converts hyphens created by automatic hyphenation to manual hyphens.

ConvertNumbersToText(Object)

将指定对象中的列表编号和 LISTNUM 域更改为文本。Changes the list numbers and LISTNUM fields in the specified object to text.

ConvertVietDoc(Int32)

使用非默认的代码页将一篇越南语文档重新转换为 Unicode。Reconverts a Vietnamese document to Unicode using a code page other than the default.

CopyStylesFromTemplate(String)

将指定模板中的样式复制到某篇文档。Copies styles from the specified template to a document.

CountNumberedItems(Object, Object)

返回指定对象中的项目符号或编号项和 LISTNUM 域的数目。Returns the number of bulleted or numbered items and LISTNUM fields in the specified 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)

根据 LetterContent 指定的信函元素创建并返回一个对象。Creates and returns a LetterContent object based on the specified letter elements.

DataForm()

显示 "数据表单" 对话框,在该对话框中可以添加、删除或修改数据记录。Displays the Data Form dialog box, in which you can add, delete, or modify data records.

DeleteAllComments()

删除 Comments 文档中的集合中的所有批注。Deletes all comments from the Comments collection in a document.

DeleteAllCommentsShown()

删除显示在屏幕上的指定文档的所有修订。Deletes all revisions in a specified document that are displayed on the screen.

DeleteAllEditableRanges(Object)

删除(指定用户或用户组有权修改其权限的)所有区域中的权限。Deletes permissions in all ranges for which the specified user or group of users has permission to modify.

DeleteAllInkAnnotations()

删除文档中所有手写墨迹注释。Deletes all handwritten ink annotations in a document.

DetectLanguage()

分析指定文本,以确定书写文本的语言类型。Analyzes the specified text to determine the language that it is written in.

DowngradeDocument()

将文档降级为 Word 97-2003 文档格式,以便可以在早期版本的 Microsoft Office Word 中对其进行编辑。Downgrades a document to the Word 97-2003 document format so that it can be edited in a previous version of Microsoft Office Word.

Dummy1()

保留以供内部使用。 Reserved for internal use.

Dummy2()

保留以供内部使用。Reserved for internal use.

Dummy3()

保留以供内部使用。Reserved for internal use.

Dummy4()

保留以供内部使用。Reserved for internal use.

EditionOptions(WdEditionType, WdEditionOption, String, Object)

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

EndReview()

通过在电子邮件中将文档发送给其他用户,终止对已使用方法发送以供审阅的文件的审阅 SendForReview(Object, Object, Object, Object) 或已自动放置在审阅周期中的文件的审阅。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.

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

将文档保存为 PDF 或 XPS 格式。Saves a document as PDF or XPS format.

FitToPages()

适当缩小文本的字体大小,使文档的页数减少。Decreases the font size of text just enough so that the document will fit on one fewer pages.

FollowHyperlink(Object, Object, Object, Object, Object, Object, Object)

显示缓存文档(如果已下载)。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.

ForwardMailer()

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

FreezeLayout()

在 Web 视图中,按照文档当前所显示的样子固定文档的版式,以使换行保持不变,且在调整窗口大小时墨迹不会移动。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.

GetCrossReferenceItems(Object)

返回一个项目数组,根据指定的交叉引用类型可对该数组中的项目进行交叉引用。Returns an array of items that can be cross-referenced based on the specified cross-reference type.

GetLetterContent()

检索指定文档中的信函元素,并返回一个 LetterContent 对象。Retrieves letter elements from the specified document and returns a LetterContent object.

GetWorkflowTasks()

返回分配给文档的工作流任务。Returns the workflow tasks assigned to a document.

GetWorkflowTemplates()

返回附加到文档的工作流模板。Returns the workflow templates attached to a document.

GoTo(Object, Object, Object, Object)

返回一个 Range 对象,表示指定的项的起始位置。Returns a Range object that represents the start position of the specified item.

LockServerFile()

在服务器上锁定文件,以避免任何其他人进行编辑。Locks the file on the server preventing anyone else from editing it.

MakeCompatibilityDefault()

在 "选项" 对话框("工具" 菜单)的 "兼容性" 选项卡上,将 "兼容性选项" 设置为新文档的默认设置。Sets the compatibility options on the Compatibility tab in the Options dialog box (Tools menu) as the default settings for new documents.

ManualHyphenation()

启动文档的手动断字设置,每次一行。Initiates manual hyphenation of a document, one line at a time. 系统将提示用户接受或拒绝建议的 hyphenations。The user is prompted to accept or decline suggested hyphenations.

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

将文档中用修订标记标识的修改合并到另一篇文档。Merges the changes marked with revision marks from one document to another.

Merge2000(String)

仅供内部使用。Reserved for internal use.

Post()

将指定的文档发送到 Microsoft Exchange 中的公用文件夹。Posts the specified document to a public folder in Microsoft Exchange. 该方法显示 "发送到 Exchange 文件夹" 对话框,以便选择一个文件夹。This method displays the Send to Exchange Folder dialog box so that a folder can be selected.

PresentIt()

打开 PowerPoint,并加载指定的 Word 文档。Opens PowerPoint with the specified Word document loaded.

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.

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

保留以供内部使用。 Reserved for internal use.

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

保留以供内部使用。Reserved for internal use.

PrintPreview()

将视图切换到打印预览。Switches the view to print preview.

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.

Protect2002(WdProtectionType, Object, Object)

仅供内部使用。Reserved for internal use.

Range(Object, Object)

Range使用指定的起始和结束字符位置返回一个对象。Returns a Range object by using the specified starting and ending character positions.

RecheckSmartTags()

删除语法检查器识别的智能标记,并针对所有智能标记识别器重新检查文档内容。Removes smart tags recognized by the grammar checker and rechecks the document content against all smart tag recognizers.

Redo(Object)

恢复上次撤消的操作(反向 Undo(Object) 方法)。Redoes the last action that was undone (reverses the Undo(Object) method). 如果重复操作成功,则返回 TrueReturns True if the actions were redone successfully.

RejectAllRevisions()

拒绝指定文档的所有修订。Rejects all tracked changes in the specified document.

RejectAllRevisionsShown()

拒绝显示在屏幕上的文档的所有修订。Rejects all revisions in a document that are displayed on the screen.

Reload()

通过解析指向缓冲文档的超链接再下载该文档来重新加载该文档。Reloads a cached document by resolving the hyperlink to the document and downloading it.

ReloadAs(MsoEncoding)

使用指定的编码重新加载一篇基于 HTML 文档的文档。Reloads a document based on an HTML document, using the specified document encoding.

RemoveDocumentInformation(WdRemoveDocInfoType)

从文档中删除敏感性信息、属性、批注和其他元数据。Removes sensitive information, properties, comments, and other metadata from a document.

RemoveDocumentWorkspaceHeader(String)

仅供内部使用。Reserved for internal use.

RemoveLockedStyles()

当文档中应用了格式设置限制时,清除锁定样式的文档。Purges a document of locked styles when formatting restrictions have been applied in a document.

RemoveNumbers(Object)

删除指定对象的编号或项目符号。Removes numbers or bullets from the specified object.

RemoveSmartTags()

删除文档中的所有智能标记信息。Removes all smart tag information from a document.

RemoveTheme()

删除当前文档中的活动主题。Removes the active theme from the current document.

Repaginate()

对整篇文档重新分页。Repaginates the entire document.

Reply()

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

ReplyAll()

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

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.

ResetFormFields()

清除文档中的所有窗体域,准备再次填充窗体。Clears all form fields in a document, preparing the form to be filled in again.

ReturnToLastReadPosition()

将活动文档返回到最后一个保存的阅读位置,并返回表示该位置的整数。Returns the active document to the last saved reading position, and returns an integer that represents that position.

Route()

使用指定文档的当前传送名单来传送文档。Routes the specified document, using the document's current routing slip.

RunAutoMacro(WdAutoMacros)

运行存储于指定文档的自动宏。Runs an auto macro that's stored in the specified document. 如果没有自动宏,则不做任何操作。If the specified auto macro doesn't exist, nothing happens.

RunLetterWizard(Object, Object)

对指定的文档运行英文信函向导。Runs the Letter Wizard on the specified document.

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.

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

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

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

仅供内部使用。Reserved for internal use.

SaveAsQuickStyleSet(String)

保存当前所用的快速样式组。Saves the group of quick styles currently in use.

SaveCopyAs(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
sblt(String)

仅供内部使用。Reserved for internal use.

Select()

选择指定的对象。Selects the specified object.

SelectAllEditableRanges(Object)

选择指定用户或用户组有权修改的所有区域。Selects all ranges for which the specified user or group of users has permission to modify.

SelectContentControlsByTag(String)

返回一个 ContentControls 集合,该集合代表文档中的所有内容控件,并在参数中指定了 tag 值 TagReturns a ContentControls collection that represents all the content controls in a document with the tag value specified in the Tag parameter. 只读。Read-only.

SelectContentControlsByTitle(String)

返回一个 ContentControls 集合,该集合代表包含在参数中指定的标题的文档中的所有内容控件 TitleReturns a ContentControls collection that represents all the content controls in a document with the title specified in the Title parameter. 只读。Read-only.

SelectLinkedControls(CustomXMLNode)

返回一个 ContentControls 集合,表示文档中的所有内容控件,这些控件链接到文档的 XML 数据存储区中的特定自定义 XML 节点(由 node 参数指定)。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.

SelectNodes(String, String, Boolean)

返回一个 XMLNodes 集合,该集合代表所有指定的节点,这些节点的顺序与它们在文档中出现的顺序相同。Returns an XMLNodes collection that represents all the specified nodes in the order in which they appear in the document.

SelectSingleNode(String, String, Boolean)

返回一个 XMLNode 对象,表示指定文档中的节点。Returns an XMLNode object that represents a node in the specified document.

SelectUnlinkedControls(CustomXMLPart)

返回文档中未链接到文档的 XML 数据存储区中的 XML 节点的所有内容控件。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.

SendFax(String, Object)

将指定的文档作为传真发送,且无需用户交互。Sends the specified document as a fax, without any user interaction.

SendFaxOverInternet(Object, Object, Object)

将文档发送给传真服务提供商,该提供商将文档传真给一个或多个指定的收件人。Sends a document to a fax service provider, who faxes the document to one or more specified recipients.

SendForReview(Object, Object, Object, Object)

将文档通过电子邮件发送给指定收件人进行审阅。Sends a document in an e-mail message for review by the specified recipients.

SendMail()

打开一个邮件窗口以通过 Microsoft Exchange 发送指定文档。Opens a message window for sending the specified document through Microsoft Exchange.

SendMailer(Object, Object)

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

SetCompatibilityMode(Int32)

设置文档的兼容模式。Sets the compatibility mode for the document.

SetDefaultTableStyle(Object, Boolean)

指定用于文档中新建表的表样式。Specifies the table style to use for newly created tables in a document.

SetLetterContent(Object)

将指定对象的内容插入 LetterContent 到文档中。Inserts the contents of the specified LetterContent object into a document.

SetPasswordEncryptionOptions(String, String, Int32, Object)

设置 Microsoft Word 用于通过密码加密文档的选项Sets the options Microsoft Word uses for encrypting documents with passwords.

ToggleFormsDesign()

打开或关闭窗体设计模式。Toggles form design mode on or off.

TransformDocument(String, Boolean)

将 Extensible Stylesheet Language Transformation (XSLT) 文件应用于指定文档,并用结果替换该文档。Applies the specified Extensible Stylesheet Language Transformation (XSLT) file to the specified document and replaces the document with the results.

Undo(Object)

撤消最后一次操作或最后一系列操作,这些操作显示在“撤消”列表中。Undoes the last action or a sequence of actions, which are displayed in the Undo list. 如果撤消操作成功,则返回 TrueReturns True if the actions were successfully undone.

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.

UnfreezeLayout()

将影响的效果 UnfreezeLayout() ,并允许在调整 Web 浏览器窗口大小时,换行并将换行批注转换为要移动的墨迹注释。Reverses the effect of UnfreezeLayout(), and enables line breaks to change and ink annotations to move when you resize the Web browser window.

Unprotect(Object)

从指定的文档中删除保护。Removes protection from the specified document. 如果对文档没有加以保护,则该方法会导致出错。If the document isn't protected, this method generates an error.

UpdateStyles()

将所有样式从附加模板复制到文档中,同时覆盖文档中所有现有同名的样式。Copies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.

UpdateSummaryProperties()

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

ViewCode()

显示指定文档中选定的 ActiveX 控件的 "代码" 窗口。Displays the code window for the selected ActiveX control in the specified document.

ViewPropertyBrowser()

显示指定文档中选定的 ActiveX 控件的属性窗口。Displays the property window for the selected ActiveX control in the specified document.

WebPagePreview()

显示将当前文档保存为网页时的预览。Displays a preview of the current document as it would look if saved as a Web page.

适用于