SftBox/OCX 4.5

SftBoxCell.Font Property

Softel vdm, Inc.

Defines the font used for this cell.

Syntax       

Get

VB.NET

refFontObj = object.Font  As stdole.IFontDispLanguage-specific information

VB

Set refFontObj = object.Font  As IFontDisp

C#.NET

stdole.IFontDispLanguage-specific information refFontObj = object.Font;

VC++

IFontDisp* refFontObj = object->GetFont();

C

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

Delphi

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

Put

VB.NET

object.let_Font(ByVal refFontObj As stdole.IFontDispLanguage-specific information)

VB

object.Font = refFontObj  As IFontDisp

C#.NET

void object.let_Font(stdole.IFontDispLanguage-specific information refFontObj);

VC++

void object->PutFont(IFontDisp* refFontObj);

C

HRESULT object->put_Font(IFontDisp* refFontObj);

Delphi

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

PutRef

VB.NET

object.Font = refFontObj  As stdole.IFontDispLanguage-specific information

VB

Set object.Font = refFontObj  As IFontDisp

C#.NET

stdole.IFontDispLanguage-specific information object.Font = refFontObj;

VC++

void object->PutRefFont(IFontDisp* refFontObj);

C

HRESULT object->putref_Font(IFontDisp* refFontObj);

Delphi

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

object

A SftBoxCell object.

refFontObj

Defines the font used for this cell. For information about font properties, please visit the applicable section "Using SftBox/OCX with ...".

Comments

The Font property defines the font used for this cell.

This property overrides the control's Font property, the default font. To remove an individual cell's font, set the property to Nothing (0, null, NULL) which will restore the default font defined using the Font property.

When overriding a cell's font in a fixed height combo box control, the new font size must be smaller or equal to the default font, otherwise text may be clipped vertically as the item height cannot be adjusted. Cell text is centered vertically and horizontally based on the Cell.TextVAlign and Cell.TextHAlign properties.


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