IFont::put_Size

Sets the current point size of the font given a CY structure.

HRESULT put_Size(
  CY size  //Size of the font
);
 

Parameters

size
[in] New size of the font.

Return Values

The method supports the standard return value E_UNEXPECTED, as well as the following:

S_OK
The font was resized successfully.
E_POINTER
The value of the size parameter is not valid. For example, it does not contain a usable font size.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in ocidl.h.

See Also

IFont::get_Size