Defines the font used by the control.
Get
| C# | System.Drawing.Font refFontObj = object.Font; |
| VB.NET | refFontObj = object.Font As System.Drawing.Font |
| C++ | IFontDisp* refFontObj = object->GetFont(); |
| C | HRESULT object->get_Font(IFontDisp** refFontObj); |
Put
| C# | void object.let_Font(System.Drawing.Font refFontObj); |
| VB.NET | object.let_Font(ByVal refFontObj As System.Drawing.Font) |
| C++ | void object->PutFont(IFontDisp* refFontObj); |
| C | HRESULT object->put_Font(IFontDisp* refFontObj); |
PutRef
| C# | System.Drawing.Font object.Font = refFontObj; |
| VB.NET | object.Font = refFontObj As System.Drawing.Font |
| C++ | void object->PutRefFont(IFontDisp* refFontObj); |
| C | HRESULT object->putref_Font(IFontDisp* refFontObj); |
object
refFontObj
Defines the font used by the control. For information about font properties, please visit the applicable section "Using SftDate/OCX with ...".
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