Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

ForeColor Property, SftMask Object

Defines the control's default text color.

Syntax

Get

VB.NETClr = object.ForeColor As System.Drawing.Color
VBClr = object.ForeColor As OLE_COLOR
C#.NETSystem.Drawing.Color Clr = object.ForeColor;
VC++OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();
CHRESULT object->get_ForeColor(OLE_COLOR* Clr);

Put

VB.NETobject.ForeColor = Clr As System.Drawing.Color
VBobject.ForeColor = Clr As OLE_COLOR
C#.NETSystem.Drawing.Color object.ForeColor = Clr;
VC++OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);
CHRESULT object->put_ForeColor(OLE_COLOR Clr);

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 caption's foreground color is defined using the Caption.ForeColor property.

See Also SftMask Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.