Table of contents
TOC
折叠目录
展开目录

DocumentInspector 对象 (办公室)DocumentInspector Object (Office)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

表示文档检查器模块DocumentInspectors集合中。Represents a Document Inspector module in a DocumentInspectors collection.

注解Remarks

DocumentInspector对象提供访问权限的检查修复方法。DocumentInspector对象表示自定义文档检查器模块和一些"内置"的选项。若要查看内置选项的列表,请从文件菜单打开文档检查器对话框。前两个选项 (批注、 修订、 版本和注释;文档属性和个人信息)没有列入DocumentInspectors集合;而它们的功能是通过RemoveDocumentInformation方法可用。在对话框中和任何已安装的自定义模块,由第三方资源开发中的其余选项即可使用DocumentInspectors集合中指定索引值。DocumentInspector object provides access to the Inspect and Fix methods. The DocumentInspector object represents custom Document Inspector modules and some "built-in" options. To see the list of built-in options, open the Document Inspector dialog box from the File menu. The first two options ( Comments, Revisions, Versions, and Annotations; Document Properties and Personal Information ) are not listed in the DocumentInspectors collection; instead their functionality is available through the RemoveDocumentInformation method. The remaining options in the dialog box and any installed custom modules developed by third-party sources are available from the DocumentInspectors collection by specifying an index value.

示例Example

本示例将使用文档检查器模块检查文档,并显示检查的状态和结果。The following example inspects a document using a Document Inspector module and displays the status and results of the inspection.

Public Sub DI_InspectDocument() 
Dim docStatus As MsoDocInspectorStatus 
Dim result As String 
ActiveDocument.DocumentInspectors(3).Inspect docStatus, results 

MsgBox ("The inspection returned the following status " & docStatus & _ 
" with this result " & result) 
End Sub

方法Methods

名称Name
修补程序Fix
检查Inspect

属性Properties

名称Name
ApplicationApplication
CreatorCreator
说明Description
NameName
ParentParent

另请参阅See also

其他资源Other resources

对象模型引用Object Model Reference

© 2018 Microsoft