[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChart.AreaGroups

AreaGroups Property

AreaGroups

Gets the collection of area chart groups on a 2D chart.

Use this property to access the IChartGroups collection for the area chart groups in the current chart.

Declaration
IChartGroups AreaGroups { get; }
ReadOnly Property AreaGroups As IChartGroups
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20},
    {"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Area, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IChartGroups areaGroups = chart.AreaGroups;
IChartGroup areaGroup = areaGroups[0];