Condividi tramite


RichTextBlock.FontWeight Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the thickness of the specified font.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property FontWeight As FontWeight
public FontWeight FontWeight { get; set; }

Property Value

Type: System.Windows.FontWeight
One of the values that specifies the thickness of the specified font. The default is Normal.

Remarks

This property can only select from fonts that already exist in a font family. It does not programmatically create alternative weights, except when a family contains a regular weight and no bold weight. In this case, Silverlight will simulate a bold weight by increasing the width of strokes using a 2D graphic algorithm.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.