Font.GdiCharSet Font.GdiCharSet Font.GdiCharSet Font.GdiCharSet Property

定義

取得指定這個 Font 使用之 GDI 字元集的位元組值。Gets a byte value that specifies the GDI character set that this Font uses.

public:
 property System::Byte GdiCharSet { System::Byte get(); };
public byte GdiCharSet { get; }
member this.GdiCharSet : byte
Public ReadOnly Property GdiCharSet As Byte

屬性值

位元組值,指定這個 Font 使用的 GDIGDI 字元集。A byte value that specifies the GDIGDI character set that this Font uses. 預設為 1。The default is 1.

備註

除非在此函式中Font(String, Single, FontStyle, GraphicsUnit, Byte)指定了不同的字元集, 否則這個屬性會傳回1。This property returns 1, unless a different character set is specified in the Font(String, Single, FontStyle, GraphicsUnit, Byte) constructor. 這個屬性會接受 Windows SDK 標頭檔 WinGDI 中定義的清單值。This property takes a value from the list defined in the Windows SDK header file WinGDI.h. 下表列出字元集和 byte 值。The character sets and byte values are listed in the following table.

字元集Character set Value
ANSIANSI 00
DEFAULTDEFAULT 11
百分號SYMBOL 22
SHIFTJISSHIFTJIS 128128
HANGEULHANGEUL 129129
HANGUL 129129
GB2312GB2312 134134
CHINESEBIG5CHINESEBIG5 136136
OEMOEM 255255
JOHABJOHAB 130130
希伯來文HEBREW 177177
阿拉伯文ARABIC 178178
希臘文GREEK 161161
土耳其文TURKISH 162162
越南文VIETNAMESE 163163
泰語THAI 222222
EASTEUROPEEASTEUROPE 238238
俄語RUSSIAN 204204
MACMAC 7777
BALTIC 186186

適用於