HeaderPane
Main
Hide
Share Link
Print

ForeColor Property, SftMask Object

Defines the control's default text color.

Syntax

Get

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

Put

C#System.Drawing.Color object.ForeColor = Clr;
VB.NETobject.ForeColor = Clr As System.Drawing.Color
C++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 11/15/2026 - (email)
© 2026 Softel vdm, Inc.