FormattedText::SetFontWeight Method (FontWeight)

 
System_CAPS_noteNote

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

Sets the font weight for the entire set of characters in the FormattedText object.

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

public:
void SetFontWeight(
	FontWeight weight
)

Parameters

weight
Type: System.Windows::FontWeight

The FontWeight to use for text formatting.

FontWeight supports type conversion behavior such that static values of the FontWeights class can be used to initialize FontWeight and fill parameters that are type FontWeight.

.NET Framework
Available since 3.0
Return to top
Show: