title: Powerpoint Modify Chart Legend width
body: <p>I am using VB.net to create charts in Powerpoint and have a small problem: The customer wants the legend bigger than the original design. Is this possible with Interop?</p>
  
  <p>I have a basically this structure:</p>
  
  <pre><code>Dim TargetChartas Microsoft.Office.Interop.PowerPoint.Chart
  TargetChart.HasLegend=true
  
  With TargetChart.Legend
                  .Position = Microsoft.Office.Interop.PowerPoint.XlLegendPosition.xlLegendPositionTop
                  .Format.TextFrame2.TextRange.Font.Bold = Microsoft.Office.Core.MsoTriState.msoCTrue
                  .Format.Line.Visible = Microsoft.Office.Core.MsoTriState.msoCTrue
  End Width
  </code></pre>
  
  <p>But I am unable to find a width property - like any normal shape posess.</p>
  
  <p>Do you have any Idea how to do this?</p>
  
  <p>I added the excel tag because the charts are basically excel charts.</p>
  
  <p>Argh: I need more tea. I just realized that Office 2010 HAS a width property, whereas 2007 does not. So I just have to check the powerpoint version... oh joy...</p>