msGraph DataLabel Count
Posted on 2006-06-16
I'm using the 'Microsoft Graph 11.0 Object Library' (Type Lib) to add a chart to a PowerPoint presentation. I've loaded the data into the graph so now I'm looking at formatting the presentation. I would like to change the font on the datalabels and I've figured out how to do this:
ThisSeries := (IDispatch(ThisChart.SeriesCollection(1)) as Graph_TLB.Series);
ThisDataLable := (IDispatch(ThisSeries.DataLabels(1)) As DataLabel);
ThisDataLable.Font.Size := 8;
but I've not found a way to get the count from the SeriesCollection or the DataLables so I don't know how many series or how many datalables per series there is. So if there's a way to get this information it would be of great help. Boot the SeriesCollection interface and the DataLables interface has a count property. But I can't seem to get a hold of any of them?