ChartArea.BackColor Property

.NET Framework (current version)
 

Gets or sets the background color of a ChartArea object.

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 BackColor As Color

Property Value

Type: System.Drawing.Color

A Color value. The default color is T:System.Drawing.Color.White.

You can set this property to any valid ARGB (alpha, red, green, blue) value.

The BackColor value will be the first color used if you have specified gradient colors for the background.

The alpha value controls the opacity of a color. If you set this color to "transparent"—that is, if you use an alpha value of 0—no color will be assigned to the background of the chart area. As a result, the background will be transparent.

.NET Framework
Available since 4.0
Return to top
Show: