SftMask/OCX 6.5

SftMask.Font Property

Softel vdm, Inc.

Defines the font used to display text while editing.

Syntax       

Get

VB.NET

refFontObj = object.Font  As System.Drawing.FontLanguage-specific information

VB

Set refFontObj = object.Font  As IFontDisp

C#.NET

System.Drawing.FontLanguage-specific information refFontObj = object.Font;

VC++

IFontDisp* refFontObj = object->GetFont();

C

HRESULT object->get_Font(IFontDisp** refFontObj);

Delphi

refFontObj := object.Font  : TFontLanguage-specific information;

Put

VB.NET

object.let_Font(ByVal refFontObj As System.Drawing.FontLanguage-specific information)

VB

object.Font = refFontObj  As IFontDisp

C#.NET

void object.let_Font(System.Drawing.FontLanguage-specific information refFontObj);

VC++

void object->PutFont(IFontDisp* refFontObj);

C

HRESULT object->put_Font(IFontDisp* refFontObj);

Delphi

procedure object._Set_Font(refFontObj : TFontLanguage-specific information);

PutRef

VB.NET

object.Font = refFontObj  As System.Drawing.FontLanguage-specific information

VB

Set object.Font = refFontObj  As IFontDisp

C#.NET

System.Drawing.FontLanguage-specific information object.Font = refFontObj;

VC++

void object->PutRefFont(IFontDisp* refFontObj);

C

HRESULT object->putref_Font(IFontDisp* refFontObj);

Delphi

object.Font := refFontObj  : TFontLanguage-specific information;

object

A SftMask object.

refFontObj

Defines the font used to display text while editing.

Comments

The Font property defines the font used to display text while editing.

The PromptUnderline and PromptUnderlineNoFocus properties can be used to further underline input fields using the defined font, allowing users to distinguish between input fields and literal characters.

The font used for the caption is defined using the Caption.Font property.

If the AutoSize property is set to True, the height of the control is automatically adjusted to allow the complete text to be displayed without being clipped vertically.

Using PutRef (see Syntax above) the control will use the reference to the Font object. If the Font object is later changed, this will also affect the font used by the control. Using Put instead, causes the control to create a copy of the Font object. If the Font object is later changed, this will not affect the font used by the control as it uses a copy of the object. Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.


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