Share via


LegendItem.BackSecondaryColor 屬性

定義

取得或設定圖例項目的輔色。

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))]
public System.Drawing.Color BackSecondaryColor { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))>]
member this.BackSecondaryColor : System.Drawing.Color with get, set
Public Property BackSecondaryColor As Color

屬性值

Color 值,用於具有影線或漸層填滿的次要背景色彩。 預設值是 Empty

屬性

備註

屬性 BackSecondaryColor 是數個相關屬性的其中一個,可決定許多 Chart 物件的次要背景色彩;當套用漸層色彩時,會使用它。

只有當 屬性設定 Rectangle 為 時, ImageStyle 才會實作這個屬性。

您可以將 設定 BackSecondaryColor 為任何有效的 ARGB (Alpha、紅色、綠色、藍色) 值。

如果使用影線, BackSecondaryColor 屬性會決定圖例專案的影線色彩。

若要針對圖例資料格的背景使用漸層色彩:

若要使用漸層色彩:

注意

這個屬性只適用于 LegendCell 具有 LegendCellTypeImage 之 的 SeriesSymbol 物件。

適用於