[]
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.
bool ShowLegendKey { get; set; }
Property ShowLegendKey As Boolean
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;