FontWeights class

Applies to Windows and Windows Phone

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

Syntax


public ref class FontWeights sealed 



          See XAML Syntax for FontWeight
        

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The FontWeights class has these types of members:

Methods

The FontWeights class inherits methods from the Object class.

Properties

The FontWeights class has these properties.

PropertyAccess typeDescription

Black

Read-onlySpecifies a "Black" font weight.

Bold

Read-onlySpecifies a "Bold" font weight.

ExtraBlack

Read-onlySpecifies an "ExtraBlack" font weight.

ExtraBold

Read-onlySpecifies an "ExtraBold" font weight.

ExtraLight

Read-onlySpecifies an "ExtraLight" font weight.

Light

Read-onlySpecifies a "Light" font weight.

Medium

Read-onlySpecifies a "Medium" font weight.

Normal

Read-onlySpecifies a "Normal" font weight.

SemiBold

Read-onlySpecifies a "SemiBold" font weight.

SemiLight

Read-onlySpecifies a "SemiLight" font weight.

Thin

Read-onlySpecifies a "Thin" font weight.

 

Remarks

In standard typography APIs, 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.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft