title: How can I retrieve the cell's color?
body: <p>I want to get the cell color with epplus. In an Excel cell I have coloured text. This code not return the cell color. I cannot understand why.  I want to get all the colors of the cell and then add it to a <code>Dictionary</code> with text.</p>
  
  <pre><code>FileInfo file = new FileInfo("K:\\1.xlsx");
  var package = new ExcelPackage(file);
  
  ExcelWorksheet worksheet = package.Workbook.Worksheets[1];
  var start = worksheet.Dimension.Start;
  var end = worksheet.Dimension.End;
      for (int row = start.Row; row &lt;= end.Row; row++)
          { 
                for (int col = start.Column; col &lt;= end.Column; col++)
                { 
                   var color = worksheet.Cells[row, col].Style.Font.Color;
  
                }
           }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Qn7e5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qn7e5.png" alt="enter image description here"></a></p>