Returns or sets the font of the OnText of the object.
Object.OnTextFont [ = fontOnTextFont ]
The OnTextFont property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
fontOnTextFont |
AFont |
A string expression specifying a font. |
The default is the current Ambient font. This property can be set at design time and is read-only at run time.
The Font is an object itself and has properties, methods, etc. Some of the properties of the font are: Name (a string), Size (a currency), Bold (boolean), Italic (boolean), Underline (boolean), Strikethrough (boolean), Weight (short var), and Charset (short var). Setting a CaptionFont property depends on the data type.
The following statement returns the ASwitch OnTextFont:
fontsqw1OnTextFont = sw1.OnTextFont.Underline
OffTextFont, OnText, OnTextColor, OnTextHeight, OnTextLeft, OnTextTop, OnTextWidth