导航:  GdiPlus Classes > Enumerations >

FontStyle

上一页返回章节概述下一页

The FontStyle enumeration specifies the style of the typeface of a font. Styles can be combined.

 

C++ Syntax

 

typedef enum {

FontStyleRegular = 0,

FontStyleBold = 1,

FontStyleItalic = 2,

FontStyleBoldItalic = 3,

FontStyleUnderline = 4,

FontStyleStrikeout = 8

} FontStyle;

 

FreeBASIC 语法

 

enum

FontStyleRegular = 0

FontStyleBold = 1

FontStyleItalic = 2

FontStyleBoldItalic = 3

FontStyleUnderline = 4

FontStyleStrikeout = 8

end enum

 

常数

 

FontStyleRegular

 

Specifies normal weight or thickness of the typeface.

 

FontStyleBold

 

Specifies bold typeface. Bold is a heavier weight or thickness.

 

FontStyleItalic

 

Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.

 

FontStyleBoldItalic

 

Specifies the typeface as both bold and italic.

 

FontStyleUnderline

 

Specifies underline, which displays a line underneath the baseline of the characters.

 

FontStyleStrikeout

 

Specifies strikeout, which displays a horizontal line drawn through the middle of the characters.