Share via


Typeface.Style Eigenschaft

Definition

Ruft den Schriftschnitt des Typeface ab.

public:
 property System::Windows::FontStyle Style { System::Windows::FontStyle get(); };
public System.Windows.FontStyle Style { get; }
member this.Style : System.Windows.FontStyle
Public ReadOnly Property Style As FontStyle

Eigenschaftswert

FontStyle

Ein FontStyle-Wert, der den Schriftschnitt für die Schriftart darstellt.

Beispiele

// Get the font style value for the typeface.
FontStyle fontStyle = typeface.Style;

if (fontStyle == FontStyles.Italic)
{
    // Perform action based on italic style value.
}
' Get the font style value for the typeface.
Dim fontStyle As FontStyle = typeface.Style

If fontStyle = FontStyles.Italic Then
    ' Perform action based on italic style value.
End If

Hinweise

Drei Begriffe kategorisieren die Schräge einer Schriftart: normal, schräg und kursiv.

Gilt für