Skip to content

piFontWeight - DFBaseTextEdit

Sets or returns font weight of all text in control

Type: Property
Access: Read/Write
Data Type: integer
Parameters: None

Syntax

Property integer piFontWeight
Access Type Syntax
Read Access: Get piFontWeight to integerVariable
Write Access: Set piFontWeight to integerVariable/Value

Description

Sets or returns the font weight of all text in the control.

FontWeight specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.

The following values are defined for convenience: FW_DONTCARE FW_THIN FW_EXTRALIGHT FW_ULTRALIGHT FW_LIGHT FW_NORMAL FW_REGULAR FW_MEDIUM FW_SEMIBOLD FW_DEMIBOLD FW_BOLD FW_EXTRABOLD FW_ULTRABOLD FW_HEAVY FW_BLACK

Sample

This sample sets the font weight of control oTextEdit 1 to FW_SEMIBOLD.

set FontWeight of oTextEdit1 to FW_SEMIBOLD