Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Chart.BackSecondaryColor Property

.NET Framework 4.6 and 4.5

Gets or sets the secondary color of the chart background.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

[BindableAttribute(true)]
[TypeConverterAttribute(typeof(ColorConverter))]
public Color BackSecondaryColor { get; set; }

Property Value

Type: System.Drawing.Color
A Color value that represents the secondary color of the chart background. 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.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft