Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TextBlock.FontStyle Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?