[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITrendlines.Parent

Parent Property

Parent

Gets the ISeries object that owns this trendline collection.

Use this property to access the parent series after obtaining an ITrendlines collection from a chart series.

Declaration
ISeries Parent { get; }
ReadOnly Property Parent As ISeries
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 12},
    {"Feb", 18},
    {"Mar", 15}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200);
IChart chart = shape.Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, false);
ITrendlines trendlines = chart.SeriesCollection[0].Trendlines;
trendlines.Add();
ISeries parentSeries = trendlines.Parent;