Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.84 KB

richtextblock_fontfamily.md

File metadata and controls

42 lines (31 loc) · 1.84 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.RichTextBlock.FontFamily
winrt property

Windows.UI.Xaml.Controls.RichTextBlock.FontFamily

-description

Gets or sets the preferred top-level font family for the text content in this element.

-xaml-syntax

<RichTextBlock FontFamily="fontFamily" />
-or-
<RichTextBlock FontFamily="fontFamilyName[,fallbackFontFamilyName]" />
-or-
<RichTextBlock FontFamily="fontURI#fontFamily" />

-xaml-values

fontFamily
fontFamily A single font family name, for example "Verdana".
fontFamilyName [,fallbackFontFamilyName]
fontFamilyName [,fallbackFontFamilyName] A primary font family choice then one or more fallback font family choices, for example "Arial Unicode MS, Arial".
fontURI#fontFamily
fontURI#fontFamily Used for non-default fonts. Specifies the resource location in the assembly for a font file, and a font family within that font. For information on this usage, see FontFamily.
## -property-value A [FontFamily](../windows.ui.xaml.media/fontfamily.md) object that specifies the preferred font family, or a primary preferred font family with one or more fallback font families. For information about defaults, see the [FontFamily](../windows.ui.xaml.media/fontfamily.md) class topic.

-remarks

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

-examples

-see-also

TextElement.FontFamily