HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

Font Property, SftTree Object

Defines the default font used to display cell text.

Syntax

Get

VB.NETrefFontObj = object.Font As System.Drawing.Font
VBSet refFontObj = object.Font As IFontDisp
C#.NETSystem.Drawing.Font refFontObj = object.Font;
VC++IFontDisp* refFontObj = object->GetFont();
CHRESULT object->get_Font(IFontDisp** refFontObj);

Put

VB.NETobject.let_Font(ByVal refFontObj As System.Drawing.Font)
VBobject.Font = refFontObj As IFontDisp
C#.NETvoid object.let_Font(System.Drawing.Font refFontObj);
VC++void object->PutFont(IFontDisp* refFontObj);
CHRESULT object->put_Font(IFontDisp* refFontObj);

PutRef

VB.NETobject.Font = refFontObj As System.Drawing.Font
VBSet object.Font = refFontObj As IFontDisp
C#.NETSystem.Drawing.Font object.Font = refFontObj;
VC++void object->PutRefFont(IFontDisp* refFontObj);
CHRESULT object->putref_Font(IFontDisp* refFontObj);

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 Footers.Font, Headers.Font and RowHeaders.Font properties are used to define the fonts used to display the column footers, column headers and row headers.

See Also SftTree Object | Object Hierarchy


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.