[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegendEntry.Parent

Parent Property

Parent

Gets the parent legend that contains this legend entry.

Declaration
ILegend Parent { get; }
ReadOnly Property Parent As ILegend
Examples
worksheet.Range["A1:B4"].Value = new object[,] {{"Month", "Sales"}, {"Jan", 12}, {"Feb", 18}, {"Mar", 15}};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
ILegendEntry legendEntry = chart.Legend.LegendEntries[0];
ILegend legend = legendEntry.Parent;