ForeColor Property, SftButton Object
Defines the control's text color.
Syntax
Get
| VB.NET | Clr = object.ForeColor As System.Drawing.Color Clr = object.CtlForeColor As System.Drawing.Color |
| VB | Clr = object.ForeColor As OLE_COLOR |
| C#.NET | System.Drawing.Color Clr = object.ForeColor; System.Drawing.Color Clr = object.CtlForeColor; |
| VC++ | OLE_COLOR Clr = object->ForeColor; OLE_COLOR Clr = object->GetForeColor(); |
| C | HRESULT object->get_ForeColor(OLE_COLOR* Clr); |
Put
| VB.NET | object.ForeColor = Clr As System.Drawing.Color object.CtlForeColor = Clr As System.Drawing.Color |
| VB | object.ForeColor = Clr As OLE_COLOR |
| C#.NET | System.Drawing.Color object.ForeColor = Clr; System.Drawing.Color object.CtlForeColor = Clr; |
| VC++ | OLE_COLOR object->ForeColor = Clr; void object->PutForeColor(OLE_COLOR Clr); |
| C | HRESULT object->put_ForeColor(OLE_COLOR Clr); |
object
A SftButton object.
Clr
Defines the control's text color. For information about color properties, please visit the applicable section "Using SftButton/OCX with ...".
Comments
The ForeColor property defines the control's text color.
If Windows themes are used, the ForeColor property has no effect, unless UseThemes is set to 2 - Yes (Exclude Text).
The defined color is used to display the text defined using the Text property. If the button is pressed, the color ForeColorPressed is used instead. If the control is disabled (see Enabled property), the foreground color defined using the ForeColorGrayed property is used instead.
The foreground color of the drop down arrow is defined using the ForeColorDownArrow property.
See Also SftButton Object | Object Hierarchy