Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.25 KB

richtextblock_fontweight.md

File metadata and controls

35 lines (24 loc) · 1.25 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.RichTextBlock.FontWeight
winrt property

Windows.UI.Xaml.Controls.RichTextBlock.FontWeight

-description

Gets or sets the top-level font weight for the RichTextBlock.

-xaml-syntax

<RichTextBlock FontWeight="fontWeightsMemberName"/>

-xaml-values

fontWeightsMemberName
fontWeightsMemberNameA FontWeights member name, such as Light or Normal.
## -property-value The requested font weight, which is a [FontWeight](../windows.ui.text/fontweight.md) that is obtained from one of the [FontWeights](../windows.ui.text/fontweights.md) property values. The default is [Normal](../windows.ui.text/fontweights_normal.md).

-remarks

Set the FontWeight property to specify the default font stretch to use for all text in the RichTextBlock. You can override this value for specific text elements in the RichTextBlock by setting the TextElement.FontWeight property.

-examples

-see-also

TextElement.FontWeight