I have a Cell in an Excel File where I’m getting styles that doesn’t match what I’m seeing in Excel visually. I have code see if the Font Color is the same as the Fill Color - in case the value would be “invisible”. This Cell (B2), has a Foreground Color of ARGB (255, 0, 0, 0), Font Color of ARGB (255, 0, 0, 0), Background Color of ARGB (255, 255, 255, 255) and a Pattern of None.
If I look at the Cell in Excel - fill color looks like White and font color looks like Black - so it’s not invisible. But, per API Reference, we are supposed to just look at Foreground Color in Aspose for the Fill color. Which appears to be the same as the Font Color. Since the Pattern is None - the Background (Pattern) color, shouldn’t come into play, right?
How can I programmatically check to see if the Font Color and the Fill Color of a cell is the same or not?
We are using Aspose.Cells .NET - version 18.6.0.
Thank you so much for your help!
Attached is the file showing this issue and a screenshot of the property values I’m seeing.