HeaderPane
Main
Hide
Share Link
Print

ColHeaderFont Property, SftTree Object

Defines the font used for all column headers.

Deprecated - Provided for compatibility with earlier versions only - Use Headers.Font instead

Syntax

Get

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

Put

C#void object.let_ColHeaderFont(System.Drawing.Font refFontObj);
VB.NETobject.let_ColHeaderFont(ByVal refFontObj As System.Drawing.Font)
C++void object->PutColHeaderFont(IFontDisp* refFontObj);
CHRESULT object->put_ColHeaderFont(IFontDisp* refFontObj);
VBobject.ColHeaderFont = refFontObj As IFontDisp

PutRef

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

object

A SftTree object.

refFontObj

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

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Headers.Font instead

The ColHeaderFont property defines the font used for all column headers.

The ColHeaderFont property is used to change the font for all column headers and the row/column header.

Using PutRef (see Syntax above) the control will use the reference to the Font object. If the Font object is later changed, this will also affect the font used by the control. Using Put instead causes the control to create a copy of the Font object. If the Font object is later changed, this will not affect the font used by the control as it uses a copy of the object. Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.

See Also SftTree Object | Object Hierarchy


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