DateTimePicker.ForeColor 属性

定义

获取或设置 DateTimePicker 控件的前景色。

public:
 virtual property System::Drawing::Color ForeColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
public override System.Drawing.Color ForeColor { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ForeColor : System.Drawing.Color with get, set
Public Overrides Property ForeColor As Color

属性值

Color

Color 的前景 DateTimePicker

属性

注解

ForeColor设置属性不会影响控件的外观DateTimePicker

若要设置下拉列表日历 DateTimePicker的前景色,请参阅该 CalendarForeColor 属性。

适用于

另请参阅