[]
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.
ISeries Parent { get; }
ReadOnly Property Parent As ISeries
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;