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

适用于

另请参阅