FontWeights Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides a set of predefined font weights as static property values.
Inheritance Hierarchy
System.Object
System.Windows.FontWeights
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public NotInheritable Class FontWeights
public static class FontWeights
See Remarks.
The FontWeights type exposes the following members.
Properties
Name | Description | |
---|---|---|
Black | Specifies a "Black" font weight. | |
Bold | Specifies a "Bold" font weight. | |
ExtraBlack | Specifies an "ExtraBlack" font weight. | |
ExtraBold | Specifies an "ExtraBold" font weight. | |
ExtraLight | Specifies an "ExtraLight" font weight. | |
Light | Specifies a "Light" font weight. | |
Medium | Specifies a "Medium" font weight. | |
Normal | Specifies a "Normal" font weight. | |
SemiBold | Specifies a "SemiBold" font weight. | |
SemiLight | Specifies a "SemiLight" font weight. | |
Thin | Specifies a "Thin" font weight. |
Top
Remarks
A font weight describes the relative weight of a font, in terms of the lightness or heaviness of the strokes. Weight differences are generally differentiated by an increased stroke or thickness that is associated with a given character in a font, as compared to a "normal" character from that same font.
The FontWeights values correspond to the usWeightClass definition in the OpenType Specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.
FontWeights Static Property Names
Font weight |
usWeightClass |
---|---|
100 |
|
200 |
|
300 |
|
400 |
|
500 |
|
600 |
|
700 |
|
800 |
|
900 |
|
950 |
For more information on XAML usage, see FontWeight. FontWeight is the value type for Silverlight properties or attributes that specify a font weight value, but you must use static properties of FontWeights to provide a FontWeight value. In XAML, you specify the name of a FontWeights property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.