Bold Property (AFont)

Returns or sets a value that determines whether or not the font is boldfaced.

Syntax

Object.Bold [ = bBold ]

The Bold property syntax has the following parts:

 

Name

Type

Description

Object

AFont

AFont object

bBold

Bool

A boolean expression that specifies whether or not the font is boldfaced.

Where

bBold can be one of the following:

 

Value

Description

True

The font is boldfaced.

False *

The font is not boldfaced.

Example

The following statement changes the font of the caption property of a button object to be Bold:

btn1.Caption.Bold=True

The following statement changes the font of a declared variable m_font1 of type font to be Bold:

m_font1.Bold=True

Applies to

AFont

See Also

Italic, Size, Strikethrough, Underline, Weight