Font::GetStyle method (gdiplusheaders.h)

The Font::GetStyle method gets the style of this font's typeface.

Syntax

INT GetStyle();

Return value

Type: INT

This method returns a value that is an element of the FontStyle enumeration or the result of a bitwise OR applied to two or more elements of the FontStyle enumeration.

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

Font

Font::GetFamily

Font::GetHeight

Font::GetSize

Font::GetUnit

FontStyle

Using Text and Fonts