[]
Gets the collection of line chart groups on a 2D chart.
Use this property to access the IChartGroups collection for the line chart groups in the current chart.
IChartGroups LineGroups { get; }
ReadOnly Property LineGroups As IChartGroups
worksheet.Range["A1:B4"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 20},
{"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Line, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IChartGroups lineGroups = chart.LineGroups;
IChartGroup lineGroup = lineGroups[0];