FontFamily Constructor

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
)

Parameters

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

fontFamilyName

fontFamilyName

A string that names the primary font.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft