共用方式為


LegendItem.Color 屬性

定義

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

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

屬性值

用來繪製圖例項目的 Color 值。 預設色彩為 Empty

屬性

備註

此屬性 Color 是數個相關屬性,可取得或設定許多圖表元素的色彩;它可以設定為任何 ARGB (Alpha、紅色、綠色、藍色) 值。

如果針對資料點及其數列設定這個屬性,資料點色彩將具有優先順序。 數列色彩只會用於未定義其本身色彩的資料點。

如果自訂圖例專案使用標記,這個屬性會決定標記色彩。 不過,如果 MarkerColor 已設定屬性,則其值會具有優先順序。

如果 Image 屬性指定要用於圖例專案符號的影像,則會忽略這個屬性。

注意

這個屬性僅適用于 LegendCell 具有 或 ImageSeriesSymbol 物件 LegendCellType

適用於