Windows.UI.Xaml.Controls.RichTextBlock.FontWeight

June 22, 2022 · View on GitHub

-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