FontFamily::GetEmHeight 方法 (gdiplusheaders.h)

FontFamily::GetEmHeight方法會取得這個字型系列設計單位中通常稱為 em size 或 em height) 的大小 (。

語法

UINT16 GetEmHeight(
  [in] INT style
);

參數

[in] style

類型: INT

指定字樣樣式的整數。 這個值必須是 FontStyle 列舉的元素,或是套用至其中兩個或多個元素的位 OR 結果。 例如, FontStyleBold | FontStyleUnderline | FontStyleStrikeout 指定三種樣式的組合。

傳回值

類型: UINT16

這個方法會傳回這個字型系列的設計單位大小。

需求

   
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 gdiplusheaders.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib
Dll Gdiplus.dll

另請參閱

FontFamily

FontFamily::GetCellDescent

FontFamily::GetEmHeight

FontFamily::GetLineSpacing

FontStyle

取得字型計量