IFont::put_Bold method (ocidl.h)

Sets the font's Bold property.

Syntax

HRESULT put_Bold(
  [in] BOOL bold
);

Parameters

[in] bold

The new Bold property for the font.

Return value

This method can return one of these values.

Return code Description
S_OK
The bold state was changed successfully.
S_FALSE
The font does not support a bold state. Note that this is not an error condition.

Remarks

Changing the Bold property may also change the Weight property. Setting the Bold property to TRUE sets the Weight property to FW_BOLD (700); setting the Bold property to FALSE sets the Weight property to FW_NORMAL (400).

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ocidl.h

See also

IFont

IFont::get_Bold