RichTextBlock.FontWeight RichTextBlock.FontWeight RichTextBlock.FontWeight RichTextBlock.FontWeight Property

Definition

Gets or sets the top-level font weight for the RichTextBlock.

public : FontWeight FontWeight { get; set; }
FontWeight FontWeight();

void FontWeight(FontWeight fontweight);
public FontWeight FontWeight { get; set; }
Public ReadWrite Property FontWeight As FontWeight
<RichTextBlock FontWeight="fontWeightsMemberName"/>

Property Value

The requested font weight, which is a FontWeight that is obtained from one of the FontWeights property values. The default is Normal.

Remarks

Set the FontWeight property to specify the default font stretch to use for all text in the RichTextBlock. You can override this value for specific text elements in the RichTextBlock by setting the TextElement.FontWeight property.

See also