ForeColor Property, SftDate Object
Defines the field's text color.
Syntax
Get
| C# | System.Drawing.Color Clr = object.ForeColor; System.Drawing.Color Clr = object.CtlForeColor; |
| VB.NET | Clr = object.ForeColor As System.Drawing.Color Clr = object.CtlForeColor As System.Drawing.Color |
| C++ | OLE_COLOR Clr = object->ForeColor; OLE_COLOR Clr = object->GetForeColor(); |
| C | HRESULT object->get_ForeColor(OLE_COLOR* Clr); |
Put
| C# | System.Drawing.Color object.ForeColor = Clr; System.Drawing.Color object.CtlForeColor = Clr; |
| VB.NET | object.ForeColor = Clr As System.Drawing.Color object.CtlForeColor = Clr As System.Drawing.Color |
| C++ | OLE_COLOR object->ForeColor = Clr; void object->PutForeColor(OLE_COLOR Clr); |
| C | HRESULT object->put_ForeColor(OLE_COLOR Clr); |
object
A SftDate object.
Clr
Defines the field's text color.
Comments
The ForeColor property defines the text color of the date field control. The default is colorSftDateDefault (-1), a color that follows the system colors, dark mode (DarkMode) and high contrast. p A color defined by the application is used as given, in light and dark mode alike, and is ignored while high contrast is active. p In Windows Forms, the wrapper class names the property CtlForeColor, a System.Drawing.Color. The default color (-1) can only be set through the control's interface (GetOcx).
See Also SftDate Object | Object Hierarchy | Colors