title: Comparing Colors
body: <p>I'm manipulating an excel file (using  Interop). I'm trying to check the background color of a specific cell.  </p>
  
  <pre><code>if (xlWorkSheet.Cells[1,j+1].Interior.Color == System.Drawing.Color.Red)
  {
      cell1.Interior.Color = System.Drawing.Color.Red;
  }
  </code></pre>
  
  <blockquote>
    <p>'Operator '==' cannot be applied to operands of type 'double' and
    'System.Drawing.Color</p>
  </blockquote>
  
  <p>I'm not even sure If this error make sense because I have this code which I can use it just fine. So If I can assign, why can't I compare?</p>
  
  <pre><code>cellHeader.Interior.Color = System.Drawing.Color.Red;
  </code></pre>