Link Search Menu Expand Document

SSpread.FontKind Property

Sets the type of font used for display text.

Before setting this property, use the Col, Row properties, and so on to specify what to do.

Specify the following values. The initial value is $STD.

Constant Value Description
$STD 0 Gothic
$FONT1 1 Ming Dynasty
$FONT2 2 Font set by Root.SetFontFamily method
$FONT3 3
$FONT4 4
$FONT5 5
$FONT6 6
$FONT7 7

In addition to the above, the font name can also be specified as a character string.

As this property changes, so does the value of the FontSize property.

Limits on fonts applied to cell blocks

Differences from the FontKind property of other classes
In addition to $ STD and $ FONT1 to $ FONT7, you can directly specify any font name installed on your computer as a character string.

If you specify a font name of your choice, the font must be installed on each computer you use.

When referencing this property, fonts that cannot be represented by $ STD and $ FONT1 to $ FONT7 return the font name as a character string.

Example of usage

Col = 2;
Row = 3;
FontKind = $FONT1;
 
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
FontKind = $FONT1;
BlockMode = $FALSE;

Related Items
FontBold, FontFace, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline property