Share via


TextBlock.FontStyle Eigenschaft

Definition

Ruft den Schriftstil für den Inhalt in diesem Element ab oder legt diesen fest.

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"/>

Eigenschaftswert

Die angeforderte Schriftart, bei der es sich um einen FontStyle-Enumerationswert handelt. Der Standardwert ist Normal.

Gilt für: