CTextFont2.SetWeightmethod
Syntax
FUNCTION SetWeight (BYVAL Value AS LONG) AS HRESULT
Also documented as
Weight — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
Value | The new font weight. The Bold property is a binary version of the Weight property that sets the weight to FW_BOLD. The font weight exists in the LOGFONT structure and the IFont interface. Windows defines the following degrees of font weight. |
Return value
The font weight. The Bold property is a binary version of the Weight property that sets the weight to FW_BOLD. The font weight exists in the LOGFONT structure and the IFont interface. Windows defines the following degrees of font weight (see table above).
Description
Gets/sets the font weight for the characters in a range.
Example
(GET) PROPERTY Weight () AS LONG (SET) PROPERTY Weight (BYVAL Value AS LONG)
Reference
- Defined in AfxNova/CTextFont2.inc:1191
- Documented in Windows/WIndows Controls/RichEdit/CTextFont2 Class.md
- Topic: CTextFont2 Class