TextBlock.FontStyle Property

Definition

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

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

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

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

Property Value

FontStyle

The requested font style, which is a FontStyle enumeration value. The default is Normal.

Applies to