I am working with ClosedXML and the background color of a specific cell could be set like the following code.
using (var workbook = new XLWorkbook())
{
var worksheet = workbook.Worksheets.Add("Sample Sheet");
worksheet.Cell("A1").Value = "Hello World!";
worksheet.Cell("A1").Style.Fill.BackgroundColor = ClosedXML.Excel.XLColor.AliceBlue;
// Fill background color as AliceBlue.
workbook.SaveAs("HelloWorld.xlsx");
}
My question is:
Is there appropriate method to convert System.Drawing.Color to ClosedXML.Excel.XLColor?
Any comments or suggestions are welcome.