在PPT 2010中获取字符系列的正确方法是什么。
我试过了
PowerPoint.SeriesCollection mySeriesCollection = (PowerPoint.SeriesCollection)
myChart.SeriesCollection(1);
引发以下异常
Exception Type: System.InvalidCastException
此外,在 C# 中获取图表系列的正确调用是什么?
如果我尝试这种方式:
PowerPoint.Series mySeries = (PowerPoint.Series)myChart.SeriesCollection.Item(1);
我收到以下编译错误:
error CS0119: 'Microsoft.Office.Interop.PowerPoint.Chart.SeriesCollection(object)'
is a 'method', which is not valid in the given context