Op Englesch liesen Editéieren

Deelen iwwer


Typeface.Style Property

Definition

Gets the style of the Typeface.

C#
public System.Windows.FontStyle Style { get; }

Property Value

A FontStyle value that represents the style value for the typeface.

Examples

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

if (fontStyle == FontStyles.Italic)
{
    // Perform action based on italic style value.
}

Remarks

Three terms categorize the slant of a font: normal, oblique, and italic.

Applies to

Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10