Title.BackSecondaryColor Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the secondary color of the title background.

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

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

Property Value

Type: System.Drawing.Color

A Color value used for the secondary color of a background with hatching or gradient fill. The default value is Empty.

This BackSecondaryColor property is one of several related properties that determine the secondary background color of 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 title.

To use gradient colors for the background of a title:

  • 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
Available since 4.0
Return to top
Show: