FontWeights FontWeights FontWeights Class

Definition

Provides a set of predefined font weights as static property values.

public : sealed class FontWeights : IFontWeights
public sealed class FontWeights : IFontWeights
Public NotInheritable Class FontWeights Implements IFontWeights
See XAML Syntax for FontWeight
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

This example shows how to set the FontWeight property on a XAML TextBlock.

<TextBlock Text="FontWeight ExtraBlack" FontWeight="ExtraBlack"/>

Remarks

In standard typography API, the weight of a font is expressed by using constant names, for example "Bold". Using constant names for setting a font weight property is supported through type converter behaviors and also by the FontWeights support class. For code access, the relevant information is expressed as the Weight factor of a FontWeight value.

This image shows the various font weight values applied to text.

Various font weight values applied to text

Properties

Black Black Black

Specifies a font weight value of 900.

public : static FontWeight Black { get; }
public static FontWeight Black { get; }
Public Static ReadOnly Property Black As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 900.

Bold Bold Bold

Specifies a font weight value of 700.

public : static FontWeight Bold { get; }
public static FontWeight Bold { get; }
Public Static ReadOnly Property Bold As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 700.

ExtraBlack ExtraBlack ExtraBlack

Specifies a font weight value of 950.

public : static FontWeight ExtraBlack { get; }
public static FontWeight ExtraBlack { get; }
Public Static ReadOnly Property ExtraBlack As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 950.

ExtraBold ExtraBold ExtraBold

Specifies a font weight value of 800.

public : static FontWeight ExtraBold { get; }
public static FontWeight ExtraBold { get; }
Public Static ReadOnly Property ExtraBold As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 800.

ExtraLight ExtraLight ExtraLight

Specifies a font weight value of 200.

public : static FontWeight ExtraLight { get; }
public static FontWeight ExtraLight { get; }
Public Static ReadOnly Property ExtraLight As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 200.

Light Light Light

Specifies a font weight value of 300.

public : static FontWeight Light { get; }
public static FontWeight Light { get; }
Public Static ReadOnly Property Light As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 300.

Medium Medium Medium

Specifies a font weight value of 500.

public : static FontWeight Medium { get; }
public static FontWeight Medium { get; }
Public Static ReadOnly Property Medium As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 500.

Normal Normal Normal

Specifies a font weight value of 400.

public : static FontWeight Normal { get; }
public static FontWeight Normal { get; }
Public Static ReadOnly Property Normal As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 400.

SemiBold SemiBold SemiBold

Specifies a font weight value of 600.

public : static FontWeight SemiBold { get; }
public static FontWeight SemiBold { get; }
Public Static ReadOnly Property SemiBold As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 600.

SemiLight SemiLight SemiLight

Specifies a font weight value of 350.

public : static FontWeight SemiLight { get; }
public static FontWeight SemiLight { get; }
Public Static ReadOnly Property SemiLight As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 350.

Thin Thin Thin

Specifies a font weight value of 100.

public : static FontWeight Thin { get; }
public static FontWeight Thin { get; }
Public Static ReadOnly Property Thin As FontWeight
Value
FontWeight FontWeight FontWeight

A FontWeight with a Weight value of 100.