FormattedText.SetFontFamily Method (FontFamily)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Sets the font family for a FormattedText object.

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

public void SetFontFamily(
	FontFamily fontFamily


Type: System.Windows.Media.FontFamily

The FontFamily to use for text formatting.

This method sets the font family value for the entire text string. To set the font family value for a subset of the text string, use the SetFontFamily method.

.NET Framework
Available since 3.0
Return to top