0

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

1 Answers1

0

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");
Anepicpastry
  • 522
  • 2
  • 10