Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.09 KB

richtextblock_fontstyle.md

File metadata and controls

33 lines (24 loc) · 1.09 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.RichTextBlock.FontStyle
winrt property

Microsoft.UI.Xaml.Controls.RichTextBlock.FontStyle

-description

Gets or sets the font style for the content in this element.

-xaml-syntax

<RichTextBlock FontStyle="fontStyleMemberName"/>

-xaml-values

fontStyleMemberName
fontStyleMemberName A FontStyle member name, such as Italic.
## -property-value The requested font style, which is a [FontStyle](/uwp/api/windows.ui.text.fontstyle) enumeration named constant. The default is Normal.

-remarks

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.

-examples

-see-also

TextElement.FontStyle