GemBox.Spreadsheet

ExcelFont.Weight Property

Gets or sets font weight (font boldness).

public int Weight {get; set;}

Remarks

Font weight is an integer value between MinWeight and MaxWeight.

If you want font to have standard boldness, set this property to BoldWeight.

Default value of this property is NormalWeight.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionThrown if font weight is out of allowed range.

See Also

ExcelFont Class | GemBox.Spreadsheet Namespace