title: c# excel AddChart
body: <p>hi i am adding chart to excel from c# as follows</p>
  
  <pre><code> Excel.Worksheet ws = 
             (Excel.Worksheet) Globals.ThisAddIn.GetActiveWorksheet();
   Excel.Shape chart = 
             (Excel.Shape) ws.Shapes.AddChart(Type.Missing,100,100,100,100);
  </code></pre>
  
  <p>is it possible now to add let's say Rectangle on the chart above for example like</p>
  
  <pre><code> chart.Add(msoRectangle,100,100,100,100); // smth of this kind
  </code></pre>
  
  <p>so that when i drag the chart, chart objects (for example above rectangle) will move with the chart... and is it possible to make it uneditable? thanks a lot!</p>