CompareOptions.Granularity
CompareOptions Granularity property. Specifies whether changes are tracked by character or by word.
CompareOptions.Granularity property
Specifies whether changes are tracked by character or by word.
public Granularity Granularity { get; set; }
Remarks
Default value is WordLevel.
Examples
Demonstrates how to compare two documents with char level granularity.
CompareOptions compareOptions = new CompareOptions() { Granularity = Granularity.CharLevel };
Comparer.Compare(MyDir + "CompareV1.docx", MyDir + "CompareV2.docx", ArtifactsDir + "Compare.Granularity.docx", SaveFormat.Docx, "Wordize", DateTime.Now, compareOptions);
See Also
- enum Granularity
- class CompareOptions
- namespace Wordize.Comparing
- assembly Wordize