Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FormattedText.SetFontWeight Method (FontWeight)

 

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:
© 2017 Microsoft