HeaderPane
Main
Hide
Share Link
Print

CellFont Property, VirtualItem Object

Defines the font used to display the item's cell text.

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.Font instead

Syntax

Get

C#stdole.IFontDisp refFontObj = object.get_CellFont(short ColIndex);
VB.NETrefFontObj = object.CellFont(ByVal ColIndex As Short) As stdole.IFontDisp
C++IFontDisp* refFontObj = object->GetCellFont(short ColIndex);
CHRESULT object->get_CellFont(short ColIndex, IFontDisp** refFontObj);
VBSet refFontObj = object.CellFont(ByVal ColIndex As Integer) As IFontDisp

Put

C#void object.let_CellFont(short ColIndex, stdole.IFontDisp refFontObj);
VB.NETobject.let_CellFont(ByVal ColIndex As Short, ByVal refFontObj As stdole.IFontDisp)
C++void object->PutCellFont(short ColIndex, IFontDisp* refFontObj);
CHRESULT object->put_CellFont(short ColIndex, IFontDisp* refFontObj);
VBobject.CellFont(ByVal ColIndex As Integer) = refFontObj As IFontDisp

PutRef

C#void object.set_CellFont(short ColIndex, stdole.IFontDisp refFontObj);
VB.NETobject.CellFont(ByVal ColIndex As Short) = refFontObj As stdole.IFontDisp
C++void object->PutRefCellFont(short ColIndex, IFontDisp* refFontObj);
CHRESULT object->putref_CellFont(short ColIndex, IFontDisp* refFontObj);
VBSet object.CellFont(ByVal ColIndex As Integer) = refFontObj As IFontDisp

object

A VirtualItem object.

ColIndex

The zero-based column number. The combination of ColIndex and the VirtualItem event's RowIndex parameter describes an individual cell.

refFontObj

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

Comments

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.Font instead

The CellFont property defines the font used to display the item's cell text.

The VirtualItem.CellFont property is used while handling a VirtualItem event to define the font for the cell described by ColIndex and the VirtualItem event's RowIndex parameter.

See Also VirtualItem Object | Object Hierarchy


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