ExcelColor.LookupColor() return string like this:
#FF000000
or
#FF000
One of them Black, second - White. I did not understand how to translate them into System.Drawinf.Color
ExcelColor.LookupColor() return string like this:
#FF000000
or
#FF000
One of them Black, second - White. I did not understand how to translate them into System.Drawinf.Color
You can use System.Drawing.ColorTranslator.FromHtml()
.
You pass the #FF000000 or #FF000 string and it will return the System.Drawing.Color value.
System.Drawing.Color CurrentCellColor = System.Drawing.ColorTranslator.FromHtml("#FF000000");