SftPrintPreview/OCX 1.0

SftPrintPreview.Font Property

Softel vdm, Inc.

Defines the default font used.

Syntax       

Get

VB.NET

refFontObj = object.Font  As System.Drawing.Font
refFontObj = object.Font  As stdole.IFontDisp  Note

VB

Set refFontObj = object.Font  As IFontDisp

C#.NET

System.Drawing.Font refFontObj = object.Font;
stdole.IFontDisp refFontObj = object.Font;  Note

VC++

IFontDisp* refFontObj = object->GetFont();

C

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

Delphi

refFontObj := object.Font  : TFont;
refFontObj := object.Font  : IFontDisp;  Note

Put

VB.NET

object.let_Font(ByVal refFontObj As stdole.IFontDisp)  Note

VB

object.Font = refFontObj  As IFontDisp

C#.NET

void object.let_Font(stdole.IFontDisp refFontObj);  Note

VC++

void object->PutFont(IFontDisp* refFontObj);

C

HRESULT object->put_Font(IFontDisp* refFontObj);

Delphi

procedure object._Set_Font(refFontObj : IFontDisp);  Note

PutRef

VB.NET

object.Font = refFontObj  As System.Drawing.Font
object.Font = refFontObj  As stdole.IFontDisp  Note

VB

Set object.Font = refFontObj  As IFontDisp

C#.NET

System.Drawing.Font object.Font = refFontObj;
stdole.IFontDisp object.Font = refFontObj;  Note

VC++

void object->PutRefFont(IFontDisp* refFontObj);

C

HRESULT object->putref_Font(IFontDisp* refFontObj);

Delphi

object.Font := refFontObj  : TFont;
object.Font := refFontObj  : IFontDisp;  Note

object

A SftPrintPreview object.

refFontObj

Defines the default font used.

Comments

The Font property defines the default font used.

This property is not currently used.  Use the HeaderFont and FooterFont to define page formatting fonts.

The font used for the tool bar cannot be modified.


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