[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartGroups

IChartGroups Interface

Represents a collection of all IChartGroup objects in a specified IChart.

Use this interface to access the chart groups contained in a chart, including charts that contain multiple group types. An IChartGroup represents one or more series plotted with the same format.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IChartGroups : IEnumerable<IChartGroup>, IEnumerable
Public Interface IChartGroups
    Inherits IEnumerable(Of IChartGroup), IEnumerable
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 10, 10, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"]);
IChartGroups chartGroups = chart.ChartGroups;
IChartGroup chartGroup = chartGroups[0];

Properties

Name Description
Count

Gets the number of chart groups in the collection.

The returned value indicates how many IChartGroup objects are contained in this IChartGroups collection for the chart.

this[int]

Gets the IChartGroup object at the specified index in the collection.

Use this property to access an individual chart group from the IChartGroups collection returned by ChartGroups.

Parent

Gets the parent IChart that contains this chart group collection.

Use this property to navigate from an IChartGroups collection back to the chart that owns it.