Skip to main content

XlFontBase.Charset Property

Gets or sets the basic set of characters associated with the current font.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public int Charset { get; set; }

Property Value

Type Description
Int32

An integer value that represents the font character set. Valid values are 0 to 255.

Remarks

The Charset property value is used in font creation when a font with the given face name is not available on the system.

The table below lists possible character sets for a cell font.

Integer value Character Set Description
0 ANSI_CHARSET Specifies the English character set.
1 DEFAULT_CHARSET Specifies a character set based on the current system locale.
2 SYMBOL_CHARSET Specifies a character set of symbols.
77 MAC_CHARSET Specifies the Apple Macintosh character set.
128 SHIFTJIS_CHARSET Specifies the Japanese character set.
129 HANGUL_CHARSET Specifies the Hangul Korean character set.
130 JOHAB_CHARSET Specifies the Johab Korean character set.
134 GB2312_CHARSET Specifies the simplified Chinese character set for the People’s Republic of China.
136 CHINESEBIG5_CHARSET Specifies the traditional Chinese character set, used mostly in Taiwan and in the Hong Kong and Macao Special Administrative Regions.
161 GREEK_CHARSET Specifies the Greek character set.
162 TURKISH_CHARSET Specifies the Turkish character set.
163 VIETNAMESE_CHARSET Specifies the Vietnamese character set.
177 HEBREW_CHARSET Specifies the Hebrew character set.
178 ARABIC_CHARSET Specifies the Arabic character set.
186 BALTIC_CHARSET Specifies the Baltic (Northeastern European) character set.
204 RUSSIAN_CHARSET Specifies the Russian Cyrillic character set.
222 THAI_CHARSET Specifies the Thai character set.
238 EASTEUROPE_CHARSET Specifies the Eastern European character set.
255 OEM_CHARSET Specifies the mapping to one of the OEM code pages according to the current system locale setting.

To specify all other required font characteristics, use the XlFont object properties such as XlFontBase.Name, XlFontBase.Size, XlFontBase.Script, XlFontBase.Underline, XlFont.Color etc. For an example on how to apply font settings to an individual cell, refer to the How to: Configure Cell Font Settings article.

See Also