SftMask/OCX 6.5

SftMask.ForeColor Property

Softel vdm, Inc.

Defines the control's default text color.

Syntax       

Get

VB.NET

Clr = object.ForeColor  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.ForeColor  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information Clr = object.ForeColor;

VC++

OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();

C

HRESULT object->get_ForeColor(OLE_COLOR* Clr);

Delphi

Clr := object.ForeColor  : TColorLanguage-specific information;

Put

VB.NET

object.ForeColor = Clr  As System.Drawing.ColorLanguage-specific information

VB

object.ForeColor = Clr  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information object.ForeColor = Clr;

VC++

OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);

C

HRESULT object->put_ForeColor(OLE_COLOR Clr);

Delphi

object.ForeColor := Clr  : TColorLanguage-specific information;

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.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com