Comparer Class
Represents main class that controls the documents comparison process.
Inheritance Hierarchy
SystemObject
  GroupDocs.ComparisonComparer

Namespace: GroupDocs.Comparison
Assembly: GroupDocs.Comparison (in GroupDocs.Comparison.dll) Version: 22.11.1.0 (22.11.1)
Syntax
public class Comparer : IDisposable

The Comparer type exposes the following members.

Constructors
  NameDescription
Public methodComparer(Stream)
Initializes new instance of Comparer class with source document stream.
Public methodComparer(String)
Initializes new instance of Comparer class with source file path.
Public methodComparer(Stream, ComparerSettings)
Initializes new instance of Comparer class with source document stream and ComparerSettings.
Public methodComparer(Stream, LoadOptions)
Initializes new instance of Comparer with source document stream and LoadOptions.
Public methodComparer(String, ComparerSettings)
Initializes new instance of Comparer class with source file path and ComparerSettings.
Public methodComparer(String, LoadOptions)
Initializes new instance of Comparer with source file path and LoadOptions.
Public methodComparer(Stream, LoadOptions, ComparerSettings)
Initializes new instance of Comparer class with document stream, LoadOptions and ComparerSettings.
Public methodComparer(String, LoadOptions, ComparerSettings)
Initializes new instance of Comparer class with source file path, LoadOptions and ComparerSettings.
Properties
  NameDescription
Public propertySource
Source file that is being compared.
Public propertyTargets
List of target files to compare with source file.
Methods
  NameDescription
Public methodAdd(Stream)
Adds document stream to comparison.
Public methodAdd(String)
Adds file to comparison.
Public methodAdd(Stream, LoadOptions)
Adds document stream to comparison with loading options specified.
Public methodAdd(String, LoadOptions)
Adds file to comparison with loading options specified.
Public methodApplyChanges(Stream, ApplyChangeOptions)
Accepts or rejects changes and applies them to resultant document.
Public methodApplyChanges(String, ApplyChangeOptions)
Accepts or rejects changes and applies them to resultant document.
Public methodApplyChanges(Stream, SaveOptions, ApplyChangeOptions)
Accepts or rejects changes and applies them to resultant document.
Public methodApplyChanges(String, SaveOptions, ApplyChangeOptions)
Accepts or rejects changes and applies them to resultant document.
Public methodCompare
Compares documents without saving result with default options
Public methodCompare(Stream)
Compares documents and saves result to file stream
Public methodCompare(String)
Compares documents and saves result to file path
Public methodCompare(CompareOptions)
Compares documents without saving result.
Public methodCompare(Stream, CompareOptions)
Compares documents and saves result to file stream
Public methodCompare(Stream, SaveOptions)
Compares documents and save result to file stream
Public methodCompare(String, CompareOptions)
Compares documents and saves result to file path
Public methodCompare(String, SaveOptions)
Compares documents and save result to file path
Public methodCompare(SaveOptions, CompareOptions)
Compares documents without saving result.
Public methodCompare(Stream, SaveOptions, CompareOptions)
Compares documents and saves result to a stream.
Public methodCompare(String, SaveOptions, CompareOptions)
Compares documents and saves result to file path
Public methodDispose
Releases resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetChanges
Gets list of changes between source and target file(s).
Public methodGetChanges(GetChangeOptions)
Gets list of changes between source and target file(s).
Public methodGetHashCode (Inherited from Object.)
Public methodGetResultString
Get result string after comparison (For Text Comparison only).
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
See Also