FontStyle Oblique

robot_2Generated
code_blocksInput

Description

The Oblique field of the FontStyle enum represents a non-cursive slanted text style. If the font being used supports an oblique style, it will be applied; otherwise, the italic style will be used as a fallback.

Usage

Use FontStyle.Oblique when you want to apply a slanted text style that is not necessarily cursive. This is useful for creating a distinct visual style in your UI elements where a subtle slant is desired without the full cursive effect of italics.

Example

// Example of using FontStyle.Oblique in a UI element
var label = new Label();
label.Text = "This is oblique text";
label.Style.FontStyle = FontStyle.Oblique;