Typeface.Style 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 the style of the 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
Property Value
A FontStyle value that represents the style value for the typeface.
Examples
// 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
Remarks
Three terms categorize the slant of a font: normal, oblique, and italic.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.