[]
Gets the parent object of the data label.
The returned object can be a IPoint or an ITrendline, depending on whether the data label belongs to a chart point or a trendline. Starting with version 7.0.0, this property returns object instead of IPoint.
object Parent { get; }
ReadOnly Property Parent As Object
worksheet.Range["A1:B4"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 20},
{"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns);
IDataLabel dataLabel = chart.SeriesCollection[0].Points[0].DataLabel;
object parent = dataLabel.Parent;