Export (0) Print
Expand All

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 codeDescription
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IFont is defined as BEF6E002-A874-101A-8BBA-00AA00300CAB

See also

IFont
IFont::get_Bold

 

 

Community Additions

ADD
Show:
© 2014 Microsoft