IFont::put_Bold method
Sets the font's Bold property.
Syntax
HRESULT put_Bold(
[in] BOOL bold
);
Parameters
- bold [in]
-
The new Bold property for the font.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
The bold state was changed successfully. |
|
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
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IFont is defined as BEF6E002-A874-101A-8BBA-00AA00300CAB |
See also
Show: