RichTextBlock.FontWeight Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the top-level font weight for the RichTextBlock.
public:
property FontWeight FontWeight { FontWeight get(); void set(FontWeight value); };
FontWeight FontWeight();
void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
var fontWeight = richTextBlock.fontWeight;
richTextBlock.fontWeight = fontWeight;
Public 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.