语言

Typeface.Style 属性

定义

获取 . 的 Typeface样式。

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

属性值

一个 FontStyle 表示字样样式值的值。

示例

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

注解

三个术语对字体的倾斜进行分类:普通、倾斜和斜体。

适用于