Name Property (AFont)

Returns or sets the facename used in the font.

Syntax

Object.Name [ = sName ]

The Name property syntax has the following parts:

 

Name

Type

Description

Object

AFont

AFont object

sName

BString

A string specifying the facename of the font, for example, Times New Roman.

Example

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

btn1.font.Name="Arial"

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

m_font1.Name="Courier"

Applies to

AFont

See Also

Bold, Charset, Italic, Size, Strikethrough, Underline, Weight