Legend.BackSecondaryColor 属性

定义

获取或设置图例背景的辅助颜色。Gets or sets the secondary color of a legend background.

public:
 property System::Drawing::Color BackSecondaryColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Drawing.Color BackSecondaryColor { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.BackSecondaryColor : System.Drawing.Color with get, set
Public Property BackSecondaryColor As Color

属性值

Color

一个 Color 值,该值用于带阴影或渐变填充的背景的辅助颜色。A Color value used for the secondary color of background with hatching or gradient fill. 默认值是 EmptyThe default value is Empty.

属性

注解

BackSecondaryColor属性确定许多对象的辅助背景色 Chart ,并在应用渐变颜色时使用。The BackSecondaryColor property determines the secondary background color of many Chart objects, and is used when gradient colors are being applied.

可以设置 BackSecondaryColor 为任何有效的 ARGB (alpha、红色、绿色、蓝色) 值。You can set BackSecondaryColor to any valid ARGB (alpha, red, green, blue) value.

如果使用阴影,则 BackSecondaryColor 属性确定图例的阴影线的颜色。If hatching is used, the BackSecondaryColor property determines the color of the hatching lines for the legend.

若要为图例的背景使用渐变颜色:To use gradient colors for the background of a legend:

适用于