[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabel.ShowLegendKey

ShowLegendKey Property

ShowLegendKey

Gets or sets whether the data label legend key is visible.

If this setting is not defined directly on the data label, the value can be inherited from its parent label settings.

Declaration
bool ShowLegendKey { get; set; }
Property ShowLegendKey As Boolean
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"]);
IDataLabel dataLabel = chart.SeriesCollection[0].Points[0].DataLabel;
dataLabel.ShowLegendKey = true;
bool showLegendKey = dataLabel.ShowLegendKey;