title: How to set color or background with "excelpackage"
body: <p>I use this package: <a href="http://excelpackage.codeplex.com/" rel="noreferrer">ExcelPackage</a> though I can't figure out how to set the background color for the cell. I tried to use this:</p>
  
  <pre><code>ws.Cells["A1"].Style.Fill.PatternType = OfficeOpenXml.Style.ExcelFillStyle.Solid;
  </code></pre>
  
  <p>But it shows that the properties are not found.</p>
  
  <p><img src="https://i.stack.imgur.com/hI7Xi.png" alt="enter image description here"></p>
  
  <p>Sounds like I should use something similar to this:</p>
  
  <pre><code>worksheet.Cell(5, columnIndex + 1).Style = "background-color: red";
  </code></pre>
  
  <p>But I am not sure how it works and I couldn't find the tutorial for it. Please help.</p>