DateTimePicker.ForeColor DateTimePicker.ForeColor DateTimePicker.ForeColor DateTimePicker.ForeColor Property

定義

取得或設定 DateTimePicker 控制項的前景色彩。Gets or sets the foreground color of the DateTimePicker control.

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; }
member this.ForeColor : System.Drawing.Color with get, set
Public Overrides Property ForeColor As Color

屬性值

Color 的前景 DateTimePickerThe foreground Color of the DateTimePicker.

備註

設定屬性不會影響DateTimePicker控制項的外觀。 ForeColorSetting the ForeColor property has no effect on the appearance of the DateTimePicker control.

若要設定的下拉式日曆DateTimePicker前景色彩, CalendarForeColor請參閱屬性。To set the foreground color for the drop-down calendar of the DateTimePicker, see the CalendarForeColor property.

適用於

另請參閱