SftTree/OCX 7.0

SftTree.Font Property

Softel vdm, Inc.

Defines the default font used to display cell text.

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

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

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

object

A SftTree object.

refFontObj

Defines the default font used to display cell text.  For information about font properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

The Font property defines the default font used to display cell text.

The Font property defines the default font used for all cells.  The height for items is calculated based on the Font and Items.Lines properties so that cell text is never clipped vertically, unless multi-line text is used with more lines than defined using the Items.Lines property.

The Cell.Font property can be used to override an individual cell's font.  The Headers.Font and RowHeaders.Font properties are used to define the fonts used to display the column and row headers.

See Also  SftTree Object | Object Hierarchy


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