TextElement.FontStyle Property

Definition

Gets or sets the font style for the content in this element.

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

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

void FontStyle(FontStyle value);
public FontStyle FontStyle { get; set; }
var fontStyle = textElement.fontStyle;
textElement.fontStyle = fontStyle;
Public Property FontStyle As FontStyle
<textElement FontStyle="fontStyleMemberName"/>

Property Value

FontStyle

One of the FontStyle constant names, specifying the font style. The default is Normal.

Applies to