TextElement.FontWeight property

Applies to Windows and Windows Phone

Gets or sets the top-level font weight to select from the font family for the content in this element.

Syntax


public FontWeight FontWeight { get; set; }


<textElement FontWeight="fontWeightsValue"/>

XAML Values

fontWeightsValue

A FontWeight constant name, such as Light, Normal, or UltraBold.

Property value

Type: FontWeight

One of the FontWeights property values, specifying the font weight. The default is Normal.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.winmd

See also

TextElement

 

 

Show:
© 2014 Microsoft