Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

_Document.Compare Method

Displays revision marks that indicate where the specified document differs from another document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim Name As String
Dim AuthorName As Object
Dim CompareTarget As Object
Dim DetectFormatChanges As Object
Dim IgnoreAllComparisonWarnings As Object
Dim AddToRecentFiles As Object
Dim RemovePersonalInformation As Object
Dim RemoveDateAndTime As Object
Dim _Document1 As _Document
_Document1.Compare(Name, AuthorName, CompareTarget, DetectFormatChanges, IgnoreAllComparisonWarnings, AddToRecentFiles, RemovePersonalInformation, RemoveDateAndTime)

'Declaration
Sub Compare( _
	<InAttribute()> ByVal Name As String, _
	<InAttribute()> Optional ByRef AuthorName As Object, _
	<InAttribute()> Optional ByRef CompareTarget As Object, _
	<InAttribute()> Optional ByRef DetectFormatChanges As Object, _
	<InAttribute()> Optional ByRef IgnoreAllComparisonWarnings As Object, _
	<InAttribute()> Optional ByRef AddToRecentFiles As Object, _
	<InAttribute()> Optional ByRef RemovePersonalInformation As Object, _
	<InAttribute()> Optional ByRef RemoveDateAndTime As Object _
)
public void Compare(
	/*in*/System.String Name, 
	/*in*/System.Object AuthorName, 
	/*in*/System.Object CompareTarget, 
	/*in*/System.Object DetectFormatChanges, 
	/*in*/System.Object IgnoreAllComparisonWarnings, 
	/*in*/System.Object AddToRecentFiles, 
	/*in*/System.Object RemovePersonalInformation, 
	/*in*/System.Object RemoveDateAndTime
);
function Compare(
	 Name : String, 
	 AuthorName : Object, 
	 CompareTarget : Object, 
	 DetectFormatChanges : Object, 
	 IgnoreAllComparisonWarnings : Object, 
	 AddToRecentFiles : Object, 
	 RemovePersonalInformation : Object, 
	 RemoveDateAndTime : Object
);

Parameters

Name

Required String. The name of the document with which the specified document is compared.

AuthorName

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

Optional Object. The target document for the comparison. Can be any WdCompareTarget constant.

DetectFormatChanges

Optional Boolean. True (default) for the comparison to include detection of format changes.

IgnoreAllComparisonWarnings

Optional Object. True compares the documents without notifying a user of problems. The default value is False.

AddToRecentFiles

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

RemovePersonalInformation

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

RemoveDateAndTime

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: