Returns or sets the character set used in the font.
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. |
nCharSet can be one of the following:
|
Value |
Description |
|
0 |
ANSI_CHARSET |
|
1 * |
DEFAULT_CHARSET |
|
2 |
SYMBOL_CHARSET |
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