Modifica

Condividi tramite


_Document.Compare Method

Definition

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)

Parameters

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. 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. Can be any WdCompareTarget constant.

DetectFormatChanges
Object

Optional 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. The default value is False.

AddToRecentFiles
Object

Optional Object. True adds the document to the list of recently used files on the File menu.

RemovePersonalInformation
Object

Optional Object. True removes personal information associated with the differences generated by the comparison.

RemoveDateAndTime
Object

Optional Object. True removes data and time information associated with the differences generated by the comparison.

Applies to