TextBlock.FontWeight Property

Definition

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

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.FontWeight.

public:
 property FontWeight FontWeight { FontWeight get(); void set(FontWeight value); };
FontWeight FontWeight();

void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
var fontWeight = textBlock.fontWeight;
textBlock.fontWeight = fontWeight;
Public Property FontWeight As FontWeight
<TextBlock FontWeight="fontWeightsMemberName"/>

Property Value

FontWeight

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

Applies to