Returns or sets the Font object used to draw the caption text of the object.
Object.CaptionFont [ = fontCaptionFont ]
The CaptionFont property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
fontCaptionFont |
A string expression specifying a font. |
The default is the Current Ambient font.
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 CaptionFont:
fontsw1Captionfont = sw1.CaptionFont.Bold
CaptionColor, CaptionHeight, CaptionLeft, CaptionTop, CaptionWidth