Share via


TextBlock.FontStyle Property

Definition

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

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

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

Applies to