SftTree/OCX 7.0

SftTreeHeaders.Font Property

Softel vdm, Inc.

Defines the font used for all column headers.

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  : IFontDisp;

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 : IFontDisp);

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  : IFontDisp;

object

A SftTreeHeaders object.

refFontObj

Defines the font used for all column headers. For information about font properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

The Font property defines the font used for all column headers.

The Font property is used to change the font for all column headers and the row/column header.  Individual column headers cannot override the font.

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  SftTreeHeaders Object | Object Hierarchy


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