Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Enabled Property

Legend.Enabled Property

.NET Framework 4.6 and 4.5

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)

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
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
Show:
© 2015 Microsoft