FontFamily Constructor
Collapse the table of content
Expand the table of content

FontFamily Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the FontFamily class from the specified font family string.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

public FontFamily(
	string familyName


Type: System.String
The family name or names that comprise the new FontFamily. See "Font Family Grammar" in Remarks.

Constructing a FontFamily in code uses a string for initialization, with a grammar that parallels how you define a FontFamily value in XAML.

Font Family Grammar



A string that names the primary font.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft