FormattedText.SetFontFamily Method (FontFamily)

 

Sets the font family for a FormattedText object.

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

public void SetFontFamily(
	FontFamily fontFamily
)

Parameters

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
Show: