FontStyles.Oblique Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies an oblique FontStyle.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public static FontStyle Oblique { get; }

Property Value

Type: System.Windows.FontStyle

A value that represents an oblique FontStyle.

The characters in an oblique font are artificially slanted. The slant is achieved by performing a shear transformation on the characters from a normal font. When a true italic font is not available on a computer or printer, an oblique style can be generated from the normal font and used to simulate an italic font.

In the following code example, the Oblique property is used to return a FontStyle.

FontStyle fontStyle = FontStyles.Oblique;

.NET Framework
Available since 3.0
Return to top
Show: