LegendItem.BorderColor Property

Definition

Gets or sets the border color of a legend item.

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

Property Value

A Color value. The default color is Empty.

Attributes

Remarks

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

Note

If you use a marker for a custom legend item. this property will set the border color of the marker. However, if the MarkerBorderColor property is also set, its value has precedence.

Note

This property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.

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