[]
Gets the collection of all chart groups in the chart.
IChartGroups ChartGroups { get; }
ReadOnly Property ChartGroups As IChartGroups
worksheet.Range["A1:C4"].Value = new object[,] {
{"Month", "Sales", "Target"},
{"Jan", 10, 12},
{"Feb", 20, 18},
{"Mar", 15, 16}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["B1:C4"]);
chart.SeriesCollection[1].ChartType = ChartType.Line;
IChartGroups chartGroups = chart.ChartGroups;
IChartGroup chartGroup = chartGroups[0];