This property returns or sets the weight of the font. The value of this property can be a Font weight constant.
Defined in
Font
Data type
double
Syntax
public double getWeight() public void setWeight(double weight)
See examples
Example: Weight property