Legend.ForeColor Property

.NET Framework (current version)
 

Gets or sets the color of the legend text.

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

<BindableAttribute(True)>
<TypeConverterAttribute(GetType(ColorConverter))>
<PersistenceModeAttribute(PersistenceMode.Attribute)>
Public Property ForeColor As Color

Property Value

Type: System.Drawing.Color

A Color value that represents the color of the legend text.

The ForeColor property is used to set the legend text color.

.NET Framework
Available since 4.0
Return to top
Show: