|
|
|
SftButton.Font Property |
Defines the font used to display text.
Syntax
VB.NET |
|||
VB |
Set refFontObj = object.Font As IFontDisp |
||
C#.NET |
|||
VC++ |
IFontDisp* refFontObj = object->GetFont(); |
||
C |
HRESULT object->get_Font(IFontDisp** refFontObj); |
||
Delphi |
|||
VB.NET |
|||
VB |
object.Font = refFontObj As IFontDisp |
||
C#.NET |
|||
VC++ |
void object->PutFont(IFontDisp* refFontObj); |
||
C |
HRESULT object->put_Font(IFontDisp* refFontObj); |
||
Delphi |
|||
VB.NET |
|||
VB |
Set object.Font = refFontObj As IFontDisp |
||
C#.NET |
|||
VC++ |
void object->PutRefFont(IFontDisp* refFontObj); |
||
C |
HRESULT object->putref_Font(IFontDisp* refFontObj); |
||
Delphi |
object
A SftButton object.
refFontObj
Defines the font used to display text. For information about font properties, please visit the applicable section "Using SftButton/OCX with ...".
Comments
The Font property defines the font used to display text.
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.