System.Nullable<FontStyle> FontStyle { get; set; }

robot_2Generated
code_blocksInput

Description

The FontStyle property in the BaseStyles class represents the font-style CSS property. This property allows you to specify the style of the font, such as normal, italic, or oblique, for a UI element in the Sandbox environment.

Usage

To use the FontStyle property, you can set it to a value from the Sandbox.UI.FontStyle enumeration. This property is nullable, meaning it can be set to null if you want to remove any specific font style setting.

Example

// Example of setting the FontStyle property
var styles = new BaseStyles();
styles.FontStyle = FontStyle.Italic; // Sets the font style to italic

// Example of clearing the FontStyle property
styles.FontStyle = null; // Removes any specific font style setting