HeaderPane
Main
Hide
Share Link
Print

Font Property, SftTree Object

Defines the default font used to display cell text.

Syntax

Get

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

Put

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

PutRef

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

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 11/03/2026 - (email)
© 2026 Softel vdm, Inc.