FontWeights FontWeights FontWeights Class

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

Syntax

Declaration

public sealed class FontWeightspublic sealed class FontWeightsPublic NotInheritable Class FontWeights
See XAML Syntax for FontWeight
        

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.

Properties summary

Specifies a "Black" font weight.

Specifies a "Bold" font weight.

Specifies an "ExtraBlack" font weight.

Specifies an "ExtraBold" font weight.

Specifies an "ExtraLight" font weight.

Specifies a "Light" font weight.

Specifies a "Medium" font weight.

Specifies a "Normal" font weight.

Specifies a "SemiBold" font weight.

Specifies a "SemiLight" font weight.

Specifies a "Thin" font weight.

Properties

  • Black
    Black
    Black
    Black

    Specifies a "Black" font weight.

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

    Property Value

  • Bold
    Bold
    Bold
    Bold

    Specifies a "Bold" font weight.

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

    Property Value

  • ExtraBlack
    ExtraBlack
    ExtraBlack
    ExtraBlack

    Specifies an "ExtraBlack" font weight.

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

    Property Value

  • ExtraBold
    ExtraBold
    ExtraBold
    ExtraBold

    Specifies an "ExtraBold" font weight.

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

    Property Value

  • ExtraLight
    ExtraLight
    ExtraLight
    ExtraLight

    Specifies an "ExtraLight" font weight.

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

    Property Value

  • Light
    Light
    Light
    Light

    Specifies a "Light" font weight.

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

    Property Value

  • Medium
    Medium
    Medium
    Medium

    Specifies a "Medium" font weight.

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

    Property Value

  • Normal
    Normal
    Normal
    Normal

    Specifies a "Normal" font weight.

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

    Property Value

  • SemiBold
    SemiBold
    SemiBold
    SemiBold

    Specifies a "SemiBold" font weight.

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

    Property Value

  • SemiLight
    SemiLight
    SemiLight
    SemiLight

    Specifies a "SemiLight" font weight.

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

    Property Value

  • Thin
    Thin
    Thin
    Thin

    Specifies a "Thin" font weight.

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

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Text.dll