title: C# Com Interop: Set Background Colour Of A Row
body: <p>I have an Excel worksheet that was created with this code:</p>
  
  <pre><code>Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();
  Workbook wb = xlApp.Workbooks.Add(XlWBATemplate.xlWBATWorksheet);
  Worksheet ws = (Worksheet)wb.Worksheets[1];
  </code></pre>
  
  <p>I would like to iterate over the rows and for each row with a certain value in the second column I would like to change the background colour of this row to red.</p>
  
  <p>Any advice is appreciated.</p>
  
  <p>Regards.</p>