Charset Property (AFont)

Returns or sets the character set used in the font.

Syntax

Object.Charset [= nCharSet ]

The Charset property syntax has the following parts:

 

Name

Type

Description

Object

AFont

AFont object

nCharSet

Short

A number specifying the character set used in the font, such as ANSI_CHARSET, DEFAULT_CHARSET, or SYMBOL_CHARSET.

Where

nCharSet can be one of the following:

 

Value

Description

0

ANSI_CHARSET

1 *

DEFAULT_CHARSET

2

SYMBOL_CHARSET

Example

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

btn1.font.Charset=0

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

m_font1.Charset=2

Applies to

AFont

See Also

Bold, Italic, Name, Size, Strikethrough, Underline, Weight