共用方式為


AmbientProperties.ForeColor 屬性

定義

取得或設定物件的前景色彩。

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

屬性值

表示物件前景色彩的 Color 值。

備註

如果沒有環境前景色彩, ForeColor 屬性值會設定為 Color.Empty

適用於

另請參閱