-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.RichTextBlock.FontStyle |
winrt property |
Gets or sets the font style for the content in this element.
<RichTextBlock FontStyle="fontStyleMemberName"/>
- fontStyleMemberName
- fontStyleMemberName A FontStyle member name, such as Italic.
Set the FontStyle 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.FontStyle property.