fontStyle 列舉 (gdiplusenums.h)

FontStyle 列舉會指定字型的字樣樣式。 可以結合樣式。

Syntax

typedef enum FontStyle {
  FontStyleRegular = 0,
  FontStyleBold = 1,
  FontStyleItalic = 2,
  FontStyleBoldItalic = 3,
  FontStyleUnderline = 4,
  FontStyleStrikeout = 8
} ;

常數

 
FontStyleRegular
值: 0
指定字樣的一般粗細或粗細。
FontStyleBold
值: 1
指定粗體字樣。 粗體是較重的重量或粗細。
FontStyleItalic
值: 2
指定斜體字樣,這會產生對字元垂直字幹的明顯斜線。
FontStyleBoldItalic
值: 3
將字樣指定為粗體和斜體。
FontStyleUnderline
值: 4
指定底線,其會在字元的基準底下顯示一行。
FontStyleStrikeout
值: 8
指定刪除線,顯示透過字元中間繪製的水平線。

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限桌面應用程式]
最低支援的伺服器 Windows 2000 Server [僅限桌面應用程式]
標頭 gdiplusenums.h (包含 Gdiplus.h)