CaptionFont Property (ASwitch)

Returns or sets the Font object used to draw the caption text of the object.

Syntax

Object.CaptionFont [ = fontCaptionFont ]

The CaptionFont property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

fontCaptionFont

AFont

A string expression specifying a font.

Comments

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.

Example

The following statement returns the ASwitch CaptionFont:

fontsw1Captionfont = sw1.CaptionFont.Bold

Applies to

ASwitch

See Also

CaptionColor, CaptionHeight, CaptionLeft, CaptionTop, CaptionWidth