FontFamily::GetCellAscent method (gdiplusheaders.h)

The FontFamily::GetCellAscent method gets the cell ascent, in design units, of this font family for the specified style or style combination.

Syntax

UINT16 GetCellAscent(
  [in] INT style
);

Parameters

[in] style

Type: INT

Integer that specifies the style of the typeface. This value must be an element of the FontStyle enumeration or the result of a bitwise OR applied to two or more of these elements. For example, FontStyleBold | FontStyleUnderline | FontStyleStrikeout specifies a combination of the three styles.

Return value

Type: UINT16

This method returns the cell ascent, in design units, of this font family for the specified style or style combination.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

FontFamily

FontFamily::GetCellDescent

FontFamily::GetEmHeight

FontFamily::GetLineSpacing

FontStyle

Obtaining Font Metrics