title: Set style of pie chart using Excel InterOp in C#
body: <p>I am working with Excel InterOp to dynamically create a pie chart with C#. I have the chart generating correctly, however I am running into a problem trying to set a style. </p>
  
  <p>If I have the document open in  Microsoft Excel and click on the chart I can set a style by doing the following: </p>
  
  <p>Click on the Chart -> Click on the Paintbrush Icon --> Style Tab --> Select a style.</p>
  
  <p>The first style that comes up in the list is the one I want to use. It is referred to "Style 1" in Microsoft Excel. I have tried setting the ChartStyle property, but it does not do anything.</p>
  
  <pre><code>the.ChartStyle = 1;
  </code></pre>
  
  <p>I tried setting it to "Style 1", however this results in an exception being thrown with a message saying to only use integers. </p>
  
  <p>Is there an integer value that equates to "Style 1"? If not, what am I doing wrong? </p>