HeaderPane
Main
Hide
Share Link
Print

Font Property, SftTreeCell Object

Defines the font used for this cell.

Syntax

Get

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

Put

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

PutRef

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

object

A SftTreeCell object.

refFontObj

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

Comments

The Font property defines the font used for this cell.

The Font property overrides the control's Font property for the specified cell. If the Font property is not set for a particular cell, the control's Font property is used to draw the cell text instead. The cell's Font property can be set to the value Nothing, which restores the tree control's default font, defined using the control's Font property.

When using fixed height items (see Items.Style) and the Font property describes a font that is larger than the control's Font property, cell text will be clipped vertically. Items do not adjust their height to the Font property. Cell text is centered vertically and horizontally based on the Cell.TextVAlign and Cell.TextHAlign properties.

See Also SftTreeCell Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.