HeaderPane
Main
Hide
Share Link
Print

Font Property, SftDate Object

Defines the font used by the control.

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);

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);

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);

object

A SftDate object.

refFontObj

Defines the font used by the control. For information about font properties, please visit the applicable section "Using SftDate/OCX with ...".

Comments

The Font property defines the font used by the control. The default is the container's font (the ambient font). p A control that sizes itself (AutoSize) adjusts its size to the font. The calendar uses this font unless Calendar.Font defines another one; the title uses a bold version unless Calendar.TitleFont is defined. p Using PutRef (see Syntax above) the control uses the reference to the Font object. If the Font object is later changed, this also affects the font used by the control. Using Put instead causes the control to create a copy of the Font object.

See Also SftDate Object | Object Hierarchy


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