ChartArea.BorderColor Property

Definition

Gets or sets the border color of a ChartArea object.

C#
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))]
public System.Drawing.Color BorderColor { get; set; }

Property Value

A Color value that specifies the border color of a chart area. The default color is Empty.

Attributes

Remarks

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

Note

For pie and doughnut charts, this property determines the color of radial and horizontal lines if data labels are drawn outside the pie or doughnut - that is, if the LabelStyle custom property is set to "Outside".

This property also determines the marker lines for 3D charts if the ShowMarkerLines custom property is set to true.

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