Class Comparer

Class Comparer

Namespace: Aspose.Words.LowCode
Assembly: Aspose.Words.dll (25.2.0)

Provides methods intended to compare documents.

public static class Comparer

Inheritance

objectComparer

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

Compare(string, string, string, string, DateTime)

Compares two documents and saves the differences to the specified output file, producing changes as a number of edit and format revisions.

public static void Compare(string v1, string v2, string outputFileName, string author, DateTime dateTime)

Parameters

v1 string

The original document.

v2 string

The modified document.

outputFileName string

The output file name.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

Compare(string, string, string, SaveFormat, string, DateTime)

Compares two documents and saves the differences to the specified output file in the provided save format, producing changes as a number of edit and format revisions.

public static void Compare(string v1, string v2, string outputFileName, SaveFormat saveFormat, string author, DateTime dateTime)

Parameters

v1 string

The original document.

v2 string

The modified document.

outputFileName string

The output file name.

saveFormat SaveFormat

The output’s save format.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

Compare(string, string, string, string, DateTime, CompareOptions)

Compares two documents with additional options and saves the differences to the specified output file, producing changes as a number of edit and format revisions.

public static void Compare(string v1, string v2, string outputFileName, string author, DateTime dateTime, CompareOptions compareOptions)

Parameters

v1 string

The original document.

v2 string

The modified document.

outputFileName string

The output file name.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

compareOptions CompareOptions

Document comparison options.

Compare(string, string, string, SaveFormat, string, DateTime, CompareOptions)

Compares two documents with additional options and saves the differences to the specified output file in the provided save format, producing changes as a number of edit and format revisions.

public static void Compare(string v1, string v2, string outputFileName, SaveFormat saveFormat, string author, DateTime dateTime, CompareOptions compareOptions)

Parameters

v1 string

The original document.

v2 string

The modified document.

outputFileName string

The output file name.

saveFormat SaveFormat

The output’s save format.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

compareOptions CompareOptions

Document comparison options.

Compare(string, string, string, SaveOptions, string, DateTime, CompareOptions)

Compares two documents with additional options and saves the differences to the specified output file in the provided save format, producing changes as a number of edit and format revisions.

public static void Compare(string v1, string v2, string outputFileName, SaveOptions saveOptions, string author, DateTime dateTime, CompareOptions compareOptions)

Parameters

v1 string

The original document.

v2 string

The modified document.

outputFileName string

The output file name.

saveOptions SaveOptions

The output’s save options.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

compareOptions CompareOptions

Document comparison options.

Compare(Stream, Stream, Stream, SaveFormat, string, DateTime)

Compares two documents loaded from streams and saves the differences to the provided output stream in the specified save format, producing changes as a number of edit and format revisions.

public static void Compare(Stream v1, Stream v2, Stream outputStream, SaveFormat saveFormat, string author, DateTime dateTime)

Parameters

v1 Stream

The original document.

v2 Stream

The modified document.

outputStream Stream

The output stream.

saveFormat SaveFormat

The output’s save format.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

Compare(Stream, Stream, Stream, SaveFormat, string, DateTime, CompareOptions)

Compares two documents loaded from streams with additional options and saves the differences to the provided output stream in the specified save format, producing changes as a number of edit and format revisions.

public static void Compare(Stream v1, Stream v2, Stream outputStream, SaveFormat saveFormat, string author, DateTime dateTime, CompareOptions compareOptions)

Parameters

v1 Stream

The original document.

v2 Stream

The modified document.

outputStream Stream

The output stream.

saveFormat SaveFormat

The output’s save format.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

compareOptions CompareOptions

Document comparison options.

Compare(Stream, Stream, Stream, SaveOptions, string, DateTime, CompareOptions)

Compares two documents loaded from streams with additional options and saves the differences to the provided output stream in the specified save format, producing changes as a number of edit and format revisions.

public static void Compare(Stream v1, Stream v2, Stream outputStream, SaveOptions saveOptions, string author, DateTime dateTime, CompareOptions compareOptions)

Parameters

v1 Stream

The original document.

v2 Stream

The modified document.

outputStream Stream

The output stream.

saveOptions SaveOptions

The output’s save options.

author string

Initials of the author to use for revisions.

dateTime DateTime

The date and time to use for revisions.

compareOptions CompareOptions

Document comparison options.

 English