[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartGroup.Parent

Parent Property

Parent

Gets the parent IChart that contains this chart group.

Use this property to access the chart that owns the current chart group after retrieving the group from ChartGroups.

Declaration
IChart Parent { get; }
ReadOnly Property Parent As IChart
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 100},
    {"Feb", 120}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"]);
IChart parent = chart.ChartGroups[0].Parent;