Export (0) Print
Expand All

Chart.BackSecondaryColor Property

Gets or sets the secondary color of the chart background.

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

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[TypeConverterAttribute(typeof(ColorConverter))]
public Color BackSecondaryColor { get; set; }
<asp:Chart BackSecondaryColor="Color" />

Property Value

Type: System.Drawing.Color
A Color value. The default value is Empty.

The BackSecondaryColor property determines the secondary background color of many Chart objects, and is used when gradient colors are being applied.

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

If hatching is used, the BackSecondaryColor property determines the color of the hatching lines for the chart.

To use gradient colors for the background of a chart:

  • Set the primary color with the BackColor property.

  • Set the secondary color with the BackSecondaryColor property.

  • Set the BackGradientStyle property to the desired gradient style.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft