|
|
|
SftMask.ForeColor Property |
Defines the control's default text color.
Syntax
VB.NET |
|||
VB |
Clr = object.ForeColor As OLE_COLOR |
||
C#.NET |
|||
VC++ |
OLE_COLOR Clr = object->ForeColor;
|
||
C |
HRESULT object->get_ForeColor(OLE_COLOR* Clr); |
||
Delphi |
|||
VB.NET |
|||
VB |
object.ForeColor = Clr As OLE_COLOR |
||
C#.NET |
|||
VC++ |
OLE_COLOR object->ForeColor = Clr;
|
||
C |
HRESULT object->put_ForeColor(OLE_COLOR Clr); |
||
Delphi |
object
A SftMask object.
Clr
Defines the control's default text color.
Comments
The ForeColor property defines the control's default text color.
This color is used for the text of the edit control. If the control contents are invalid, the ForeColorInvalid property is used instead.
If the control has the input focus, the ForeColorFocus property is used instead.
If the control is disabled (see Enabled property), the ForeColorGrayed property defines the foreground color.
Text that is selected uses the SelectForeColor property instead. The captions foreground color is defined using the Caption.ForeColor property.