TextElement.FontWeight Property

Definition

Gets or sets the top-level font weight to select from the font family for the content in this element.

Equivalent WinUI property: Microsoft.UI.Xaml.Documents.TextElement.FontWeight.

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

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

Property Value

FontWeight

One of the FontWeights property values, specifying the font weight. The default is Normal.

Applies to