Number

FontWeight.Number property

Returns a number - integer value between 1 and 1000, inclusive, which describes the boldness of the font, or throws an exception, if current boldness is not absolute, but relative

public ushort Number { get; }

Exceptions

exception condition
InvalidOperationException Thrown if current font-weight holds a relative value of the font boldness

See Also