GroupDocs.Comparison for .NET 24.12 Release Notes
Full list of changes in this release
Key | Category | Summary |
---|---|---|
COMPARISONNET-4200 | Feature | The borders of the changed shapes is still black |
COMPARISONNET-4086 | Fix | Document comparison crashes when document contains specific field code |
COMPARISONNET-4225 | Fix | HTML comparison issue |
COMPARISONNET-4235 | Fix | Access violation trying to compare two PPTX documents |
Below is the list of most notable changes in release of GroupDocs.Comparison for .NET 24.12:
- Fixed exception with comparing HTML documents with synthax errors in attributes
- Fixed exception with comparing specific DOCX documents
- Fixed Comparison crash in specific PPTX documents
- Added new comparison option to set the shape color independently of the font color
Set shape color independently of font color
Starting with version 24.12, we have introduced the ability to set the shape color independently of the font color. To use this feature, specify the ShapeColor in the StyleSettings of InsertedItemStyle/DeletedItemStyle/ChangedItemStyle of the CompareOptions class. Below is a code snippet demonstrating how to use this feature.
using GroupDocs.Comparison;
string sourcePath = @"source.docx";
string targetPath = @"target.docx";
string resultPath = @"result.docx";
using (Comparer comparer = new Comparer(sourcePath))
{
// Add target document
comparer.Add(targetPath);
// Add compare options
CompareOptions compareOptions = new CompareOptions()
{
DetectStyleChanges = true,
MarkChangedContent = true,
InsertedItemStyle = new StyleSettings()
{
FontColor = System.Drawing.Color.Blue,
ShapeColor = System.Drawing.Color.Purple
},
DeletedItemStyle = new StyleSettings()
{
FontColor = System.Drawing.Color.Red,
ShapeColor = System.Drawing.Color.Orange
},
ChangedItemStyle = new StyleSettings()
{
FontColor = System.Drawing.Color.Green,
ShapeColor = System.Drawing.Color.LightGreen
}
}
// Compare and save comparison result
comparer.Compare(resultPath, compareOptions);
}
more details could be found on documentation here.