LegendItem.BackSecondaryColor 属性

定义

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

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 is one of several related properties that determine the secondary background color of many Chart objects; it is used when gradient colors are being applied.

仅当属性设置为时,才实现此属性 ImageStyle RectangleThis property is only implemented if the ImageStyle property is set to Rectangle.

可以设置 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 item.

使用图例单元背景的渐变颜色:To use gradient colors for a legend cell's background:

使用渐变颜色:To use gradient colors:

备注

此属性仅适用于 LegendCell 具有 LegendCellType 或的对象 SeriesSymbol ImageThis property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.

适用于