Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.4 KB

textblock_fontfamily.md

File metadata and controls

39 lines (28 loc) · 1.4 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.TextBlock.FontFamily
winrt property

Windows.UI.Xaml.Controls.TextBlock.FontFamily

-description

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

-xaml-syntax

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

-xaml-values

fontFamily
fontFamilyA 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#fontFamilyUsed 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

-examples

-see-also