Pen.Color 屬性

定義

取得或設定這個 Pen 的色彩。

public:
 property System::Drawing::Color Color { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color Color { get; set; }
member this.Color : System.Drawing.Color with get, set
Public Property Color As Color

屬性值

Color 結構,表示這個 Pen 的色彩。

例外狀況

Color 屬性設定於不可變動的 Pen 上,例如 Pens 類別傳回的項目。

適用於