Export (0) Print
Expand All

Legend.Enabled Property

Gets or sets a value that determines if the legend is enabled.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public bool Enabled { get; set; }

Property Value

Type: System.Boolean
true if legend is enabled; otherwise, false. The default value is true.

To hide a legend, set this property to false.

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft