Sometimes we need to compare with some of the options above and other options are don’t want to show the differences !!!
how can we do this type of comparison with GroupDocs ?
Seen 2 options only StyleChangeDetection & StyleChangedItemsStyle
Do you mean that you have such options in the documents (source and target) and sometimes you want to compare all of them and sometimes some of them? For example you want to compare Superscript in both docs but not Subscript?
Yes, we want compare only the some of the options(Superscript/ few of above mentioned options) not with all Changes.
Here user can able to select Compare with above options,
1.User may Compare only Bold type compare
2.User may compare with Background color and Bold type Compare etc…
This feature is not yet supported by the API. However, we will investigate it but we cannot share any ETA at the moment.
As a workaround, you can get changes by node type after the comparison and then choose item(s) that you need, and work with it.
Let me further elaborate this:
You can get array with all changes by invoking method GetChanges() from ICompareResult interface. After this you can either accept or reject the changes by index as shown in the code sample below:
If I am not wrong, you are looking for a way to show comparison difference or style changes in a customized way. For example, you want to set inserted items style to bold and italic. And for deleted items you need to set a different font color and add underline. Can you please confirm this?
Thanks for the explanation but you cannot do such type of comparison. The only workaround is to get all the changes in array and then decide what changes to reject.
And then on that basis you can allow or reject output/differences.