Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.HeaderFont Property

Defines the font used for page headers.

Syntax

Get

VB.NETrefFontObj = object.HeaderFont As System.Drawing.Font
refFontObj = object.HeaderFont As stdole.IFontDisp Note
VBSet refFontObj = object.HeaderFont As IFontDisp
C#.NETSystem.Drawing.Font refFontObj = object.HeaderFont;
stdole.IFontDisp refFontObj = object.HeaderFont; Note
VC++IFontDisp* refFontObj = object->GetHeaderFont();
CHRESULT object->get_HeaderFont(IFontDisp** refFontObj);

Put

VB.NETobject.let_HeaderFont(ByVal refFontObj As stdole.IFontDisp) Note
VBobject.HeaderFont = refFontObj As IFontDisp
C#.NETvoid object.let_HeaderFont(stdole.IFontDisp refFontObj); Note
VC++void object->PutHeaderFont(IFontDisp* refFontObj);
CHRESULT object->put_HeaderFont(IFontDisp* refFontObj);

PutRef

VB.NETobject.HeaderFont = refFontObj As System.Drawing.Font
object.HeaderFont = refFontObj As stdole.IFontDisp Note
VBSet object.HeaderFont = refFontObj As IFontDisp
C#.NETSystem.Drawing.Font object.HeaderFont = refFontObj;
stdole.IFontDisp object.HeaderFont = refFontObj; Note
VC++void object->PutRefHeaderFont(IFontDisp* refFontObj);
CHRESULT object->putref_HeaderFont(IFontDisp* refFontObj);

object

A SftPrintPreview object.

refFontObj

Defines the font used for page headers.

Comments

The HeaderFont property defines the font used for page headers.

The FooterFont property can be used to define the font used for page footers.

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.

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.