ForeColorFocus Property, SftMask Object
Defines the control's default text color when it has the input focus.
Syntax
Get
| VB.NET | Clr = object.ForeColorFocus As System.Drawing.Color |
| VB | Clr = object.ForeColorFocus As OLE_COLOR |
| C#.NET | System.Drawing.Color Clr = object.ForeColorFocus; |
| VC++ | OLE_COLOR Clr = object->ForeColorFocus; OLE_COLOR Clr = object->GetForeColorFocus(); |
| C | HRESULT object->get_ForeColorFocus(OLE_COLOR* Clr); |
Put
| VB.NET | object.ForeColorFocus = Clr As System.Drawing.Color |
| VB | object.ForeColorFocus = Clr As OLE_COLOR |
| C#.NET | System.Drawing.Color object.ForeColorFocus = Clr; |
| VC++ | OLE_COLOR object->ForeColorFocus = Clr; void object->PutForeColorFocus(OLE_COLOR Clr); |
| C | HRESULT object->put_ForeColorFocus(OLE_COLOR Clr); |
object
A SftMask object.
Clr
Defines the control's default text color when it has the input focus.
Comments
The ForeColorFocus property defines the control's default text color when it has the input focus.
If the control does not have the input focus or if no color has been defined for the ForeColorFocus property, the ForeColor property defines the control's default foreground color.
Text that is selected uses the SelectForeColorFocus property instead. The caption's foreground color is defined using the Caption.ForeColor property.
See Also SftMask Object | Object Hierarchy