StripLine.BackColor Property

.NET Framework (current version)
 

Gets or sets the background color of the strip line.

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

[<BindableAttribute(true)>]
[<TypeConverterAttribute(typeof(ColorConverter))>]
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
member BackColor : Color with get, set

Property Value

Type: System.Drawing.Color

A Color structure. The default color is White.

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

To set a gradient for the strip line, set the BackColor and BackSecondaryColor properties.

If you set this color to "transparent"—in other words, set the alpha value to 0—no color will be assigned to the background of the element. As a result, the background will be transparent.

If the StripWidth property is set to 0.0, a line will be drawn and the BorderColor property will determine the color of the line, not this property.

The following code example demonstrates three applications of strip lines. First, horizontal strip lines are added at recurring intervals. Second, vertical strip lines are added to highlight weekend data points. Lastly, a non-recurring strip line is added to denote the mean of the data points in the first series of the chart.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 4.0
Return to top
Show: