ChartArea.BackGradientStyle Property

Definition

Gets or sets the orientation for the background gradient of a chart area, and also determines whether or not a gradient is used.

C#
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.GradientStyle BackGradientStyle { get; set; }

Property Value

A GradientStyle enumeration that specifies the orientation for the background gradient of a chart area and determines whether a gradient is used. The default value is None.

Attributes

Remarks

Use the BackGradientStyle property to determine whether a chart area will display a gradient, and to determine the orientation of the gradient if one is used.

For a listing of available patterns, refer to the GradientStyle enumeration.

To use gradient colors:

  • Set the primary color of the chart area background with the BackColor property.

  • Set the secondary color of the chart area background with the BackSecondaryColor property.

  • Set this BackGradientStyle property to the desired gradient style.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1