Font::GetStyle method (gdiplusheaders.h)

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

Syntax

INT GetStyle();

Parameters

This method has no parameters.

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

   
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