[]
Gets the parent legend that contains this legend entry collection.
Use this property to access the ILegend object that owns the current ILegendEntries collection.
ILegend Parent { get; }
ReadOnly Property Parent As ILegend
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Value"},
{"A", 10},
{"B", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
ILegendEntries legendEntries = chart.Legend.LegendEntries;
ILegend legend = legendEntries.Parent;