ApplicationClass.CompareDocuments Method
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Public Overridable Function CompareDocuments ( _
OriginalDocument As Document, _
RevisedDocument As Document, _
Destination As WdCompareDestination, _
Granularity As WdGranularity, _
CompareFormatting As Boolean, _
CompareCaseChanges As Boolean, _
CompareWhitespace As Boolean, _
CompareTables As Boolean, _
CompareHeaders As Boolean, _
CompareFootnotes As Boolean, _
CompareTextboxes As Boolean, _
CompareFields As Boolean, _
CompareComments As Boolean, _
CompareMoves As Boolean, _
RevisedAuthor As String, _
IgnoreAllComparisonWarnings As Boolean _
) As Document
'Usage
Dim instance As ApplicationClass
Dim OriginalDocument As Document
Dim RevisedDocument As Document
Dim Destination As WdCompareDestination
Dim Granularity As WdGranularity
Dim CompareFormatting As Boolean
Dim CompareCaseChanges As Boolean
Dim CompareWhitespace As Boolean
Dim CompareTables As Boolean
Dim CompareHeaders As Boolean
Dim CompareFootnotes As Boolean
Dim CompareTextboxes As Boolean
Dim CompareFields As Boolean
Dim CompareComments As Boolean
Dim CompareMoves As Boolean
Dim RevisedAuthor As String
Dim IgnoreAllComparisonWarnings As Boolean
Dim returnValue As Document
returnValue = instance.CompareDocuments(OriginalDocument, _
RevisedDocument, Destination, Granularity, _
CompareFormatting, CompareCaseChanges, _
CompareWhitespace, CompareTables, _
CompareHeaders, CompareFootnotes, _
CompareTextboxes, CompareFields, _
CompareComments, CompareMoves, RevisedAuthor, _
IgnoreAllComparisonWarnings)
public virtual Document CompareDocuments(
Document OriginalDocument,
Document RevisedDocument,
WdCompareDestination Destination,
WdGranularity Granularity,
bool CompareFormatting,
bool CompareCaseChanges,
bool CompareWhitespace,
bool CompareTables,
bool CompareHeaders,
bool CompareFootnotes,
bool CompareTextboxes,
bool CompareFields,
bool CompareComments,
bool CompareMoves,
string RevisedAuthor,
bool IgnoreAllComparisonWarnings
)
Parameters
- OriginalDocument
Type: Microsoft.Office.Interop.Word.Document
- RevisedDocument
Type: Microsoft.Office.Interop.Word.Document
- Destination
Type: Microsoft.Office.Interop.Word.WdCompareDestination
- Granularity
Type: Microsoft.Office.Interop.Word.WdGranularity
- CompareFormatting
Type: System.Boolean
- CompareCaseChanges
Type: System.Boolean
- CompareWhitespace
Type: System.Boolean
- CompareTables
Type: System.Boolean
- CompareHeaders
Type: System.Boolean
- CompareFootnotes
Type: System.Boolean
- CompareTextboxes
Type: System.Boolean
- CompareFields
Type: System.Boolean
- CompareComments
Type: System.Boolean
- CompareMoves
Type: System.Boolean
- RevisedAuthor
Type: System.String
- IgnoreAllComparisonWarnings
Type: System.Boolean
Return Value
Type: Microsoft.Office.Interop.Word.Document