_Document.Compare(String, Object, Object, Object, Object, Object, Object, Object) 方法

定义

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

public void Compare (string Name, ref object AuthorName, ref object CompareTarget, ref object DetectFormatChanges, ref object IgnoreAllComparisonWarnings, ref object AddToRecentFiles, ref object RemovePersonalInformation, ref object RemoveDateAndTime);
abstract member Compare : string * obj * obj * obj * obj * obj * obj * obj -> unit
Public Sub Compare (Name As String, Optional ByRef AuthorName As Object, Optional ByRef CompareTarget As Object, Optional ByRef DetectFormatChanges As Object, Optional ByRef IgnoreAllComparisonWarnings As Object, Optional ByRef AddToRecentFiles As Object, Optional ByRef RemovePersonalInformation As Object, Optional ByRef RemoveDateAndTime As Object)

参数

Name
String

必需的 字符串Required String. 与指定文档作比较的文档的名称。The name of the document with which the specified document is compared.

AuthorName
Object

可选对象Optional Object. 与比较生成的区别相关联的审阅者姓名。The reviewer name associated with the differences generated by the comparison. 如果没有指定,则默认值为修订的文档的作者姓名或字符串"Comparison"(如果没有提供作者信息)。If unspecified, the value defaults to the author name of the revised document or the string "Comparison" if no author information is present.

CompareTarget
Object

可选对象Optional Object. 比较的目标文档。The target document for the comparison. 可以是任何 WdCompareTarget 常量。Can be any WdCompareTarget constant.

DetectFormatChanges
Object

可选属性,类型为 BooleanOptional Boolean. (默认值) 进行比较以包含检测到的格式更改。True (default) for the comparison to include detection of format changes.

IgnoreAllComparisonWarnings
Object

可选对象Optional Object. 真正 比较文档,而不必通知用户有问题存在。True compares the documents without notifying a user of problems. 默认值为 False。The default value is False.

AddToRecentFiles
Object

可选对象Optional Object. True 将文档添加到 文件菜单上最近使用的文件列表。True adds the document to the list of recently used files on the File menu.

RemovePersonalInformation
Object

可选对象Optional Object. 如果为 True,则删除与比较生成的差异相关联的个人信息。True removes personal information associated with the differences generated by the comparison.

RemoveDateAndTime
Object

可选对象Optional Object. 如果为 True,则删除与比较生成的差异相关联的数据和时间信息。True removes data and time information associated with the differences generated by the comparison.

适用于