title: How to change line shape's color in Excel?
body: <p>I tried every method to do that. But nothing works. Please, help me, how can I add line in Excel and change its color in C#? I tried this:</p>
  
  <pre><code>Shape line = ws.Shapes.AddLine(98, 60, 432, 60);
  line.Fill.ForeColor.RGB = Color.Red.ToArgb();
  </code></pre>
  
  <p>But it gives me error: out of range. What can I do else?)</p>