[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChart.HasLegend

HasLegend Property

HasLegend

Gets or sets whether the chart has a legend.

Use this property to determine whether the legend is currently displayed for the chart.

Declaration
bool HasLegend { get; set; }
Property HasLegend As Boolean
Examples
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.HasLegend = true;
bool hasLegend = chart.HasLegend;